Sha256: 98b37738f6b3dd59d0d567474af0b31cb3cc95ee04babb4b86845015b86a1f68

Contents?: true

Size: 665 Bytes

Versions: 3

Compression:

Stored size: 665 Bytes

Contents

#!/bin/bash
#
# Install a full observed
#

PROGNAME=`basename $0`
INSTALLER_DIR=`dirname $0`
DEST_DIR=/opt/observed
CONFIG_DIR=/etc/observed
USAGE="usage: $0"

error_exit()
{
  echo "${PROGNAME}: ${1:-"Unknown Error"}" 1>&2
  exit 1
}

# move the actual files into place
rm -rf $DEST_DIR/* || error_exit "Cannot remove contents of $DEST_DIR"
mkdir -p $DEST_DIR || error_exit "Cannot create $DEST_DIR"
cp -R $INSTALLER_DIR $DEST_DIR || error_exit "Cannot install to $DEST_DIR"
rm -f $DEST_DIR/$PROGNAME

# You may want to symlink your packages bin files into /usr/bin
# ln -sf $DEST_DIR/bin/observed /usr/bin || error_exit "Cannot link observed to /usr/bin"

exit 0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
observed-0.2.0 omnibus-observed/package-scripts/observed/makeselfinst
observed-0.2.0.rc2 omnibus-observed/package-scripts/observed/makeselfinst
observed-0.2.0.rc1 omnibus-observed/package-scripts/observed/makeselfinst