Sha256: 9a1bd573313dd48851a9d72a3db63d8997a28ca3df9999a99d45025a93364f9c

Contents?: true

Size: 727 Bytes

Versions: 6

Compression:

Stored size: 727 Bytes

Contents

#!/bin/bash
#
# Install a full <%= config[:name] %>
#

PROGNAME=`basename $0`
INSTALLER_DIR=`dirname $0`
DEST_DIR=<%= config[:install_dir] %>
CONFIG_DIR=/etc/<%= config[:name] %>
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/<%= config[:name] %> /usr/bin || error_exit "Cannot link <%= config[:name] %> to /usr/bin"

exit 0

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
omnibus-3.2.2 lib/omnibus/generator_files/package_scripts/makeselfinst.erb
omnibus-3.2.1 lib/omnibus/generator_files/package_scripts/makeselfinst.erb
omnibus-3.2.0 lib/omnibus/generator_files/package_scripts/makeselfinst.erb
omnibus-3.2.0.rc.3 lib/omnibus/generator_files/package_scripts/makeselfinst.erb
omnibus-3.2.0.rc.2 lib/omnibus/generator_files/package_scripts/makeselfinst.erb
omnibus-3.2.0.rc.1 lib/omnibus/generator_files/package_scripts/makeselfinst.erb