Sha256: 70952e1ce944acaf9207078514081329e23afae140904425aad81825b62e6d12

Contents?: true

Size: 728 Bytes

Versions: 17

Compression:

Stored size: 728 Bytes

Contents

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

PROGNAME=`basename $0`
INSTALLER_DIR=`dirname $0`
DEST_DIR=<%= config[:install_path] %>
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

17 entries across 17 versions & 2 rubygems

Version Path
omnibus-2.0.2 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-3.1.1 lib/omnibus/generator_files/package_scripts/makeselfinst.erb
omnibus-3.1.0 lib/omnibus/generator_files/package_scripts/makeselfinst.erb
omnibus-3.0.0 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-2.0.1 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-2.0.0 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-2.0.0.rc1 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-1.3.0 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-sonian-1.2.0.1 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-1.2.0 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-1.1.1 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-1.1.0 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-1.0.4 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-1.0.3 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-1.0.2 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-1.0.1 lib/omnibus/templates/package_scripts/makeselfinst.erb
omnibus-1.0.0 lib/omnibus/templates/package_scripts/makeselfinst.erb