added help
This commit is contained in:
parent
a9a4107b2f
commit
a154893c9f
|
@ -40,22 +40,51 @@
|
||||||
# ---------------------------------------------
|
# ---------------------------------------------
|
||||||
# Usage:
|
# Usage:
|
||||||
# ---------------------------------------------
|
# ---------------------------------------------
|
||||||
# ./deploy begin Run begin script
|
# To deploy, run:
|
||||||
# ./deploy copy Copy files to /tmp
|
# ./deploy --install [ .deploy location ]
|
||||||
# ./deploy replace Replace the old files
|
|
||||||
# ./deploy finish Run the finish script
|
|
||||||
#
|
#
|
||||||
# To deploy run:
|
# To update already existing deployment, run:
|
||||||
# ./deploy install
|
# ./deploy --update [ .deploy location ]
|
||||||
#
|
#
|
||||||
# To update already existing deployment run:
|
# It will run copy, replace and update-s2...
|
||||||
# ./deploy update
|
#
|
||||||
|
# Partial deployment options:
|
||||||
|
# ./deploy --begin Run begin script
|
||||||
|
# ./deploy --copy Copy files to /tmp
|
||||||
|
# ./deploy --replace Replace the old files
|
||||||
|
# ./deploy --finish Run the finish script
|
||||||
|
# ./deploy --update-s2 Run the update script, only
|
||||||
|
#
|
||||||
|
# If the location where the .deploy file isn't specified, deploy.sh will assume
|
||||||
|
# it's in the current directory.
|
||||||
# ---------------------------------------------
|
# ---------------------------------------------
|
||||||
|
|
||||||
APP="$0"
|
APP="$0"
|
||||||
COMMAND=$1
|
COMMAND=$1
|
||||||
DIR="$2"
|
DIR="$2"
|
||||||
|
|
||||||
|
if [ "$1" = "" ]; then
|
||||||
|
echo "
|
||||||
|
To deploy, run:
|
||||||
|
./deploy --install [ .deploy location ]
|
||||||
|
|
||||||
|
To update already existing deployment, run:
|
||||||
|
./deploy --update [ .deploy location ]
|
||||||
|
|
||||||
|
It will run copy, replace and update-s2...
|
||||||
|
|
||||||
|
Partial deployment options:
|
||||||
|
./deploy --begin Run begin script
|
||||||
|
./deploy --copy Copy files to /tmp
|
||||||
|
./deploy --replace Replace the old files
|
||||||
|
./deploy --finish Run the finish script
|
||||||
|
./deploy --update-s2 Run the update script, only
|
||||||
|
|
||||||
|
If the location where the .deploy file isn't specified, deploy.sh will assume
|
||||||
|
it's in the current directory."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
# clean up the location string
|
# clean up the location string
|
||||||
if [ "$DIR" = "" ]; then
|
if [ "$DIR" = "" ]; then
|
||||||
DIR="$( cd "$( dirname "$0" )" && pwd )"
|
DIR="$( cd "$( dirname "$0" )" && pwd )"
|
||||||
|
@ -81,6 +110,9 @@ elif [ "$COMMAND" = "--update" ]; then
|
||||||
$APP --update-s2
|
$APP --update-s2
|
||||||
echo "Update is done"
|
echo "Update is done"
|
||||||
exit
|
exit
|
||||||
|
elif [ "$COMMAND" = "--help" ]; then
|
||||||
|
$APP
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# get user info
|
# get user info
|
||||||
|
|
Loading…
Reference in New Issue