2 # This code runs after package variable definitions, before the actual
3 # pre/post package work, to set some variable and function defaults.
5 if [ -z "$INSTALL_PATH" ]; then
8 PACKAGE BUILD ERROR: $0 is missing package metadata.
10 This package is buggy. Please mail <support@curoverse.com> to let
11 us know the name and version number of the package you tried to
12 install, and we'll get it fixed.
18 RELEASE_PATH=$INSTALL_PATH/current
19 RELEASE_CONFIG_PATH=$RELEASE_PATH/config
20 SHARED_PATH=$INSTALL_PATH/shared
22 RAILSPKG_SUPPORTS_CONFIG_CHECK=${RAILSPKG_SUPPORTS_CONFIG_CHECK:-1}
23 if ! type setup_extra_conffiles >/dev/null 2>&1; then
24 setup_extra_conffiles() { return; }
26 if ! type setup_before_nginx_restart >/dev/null 2>&1; then
27 setup_before_nginx_restart() { return; }