diff options
author | Luis Rascao <[email protected]> | 2016-10-30 14:26:06 +0000 |
---|---|---|
committer | Luis Rascao <[email protected]> | 2016-10-30 16:24:19 +0000 |
commit | fc3d783511dde534f6f07c24067106126f1053b1 (patch) | |
tree | 7cade7202b3a1994d79dc33a63279b6264f44987 /priv/templates/extended_bin | |
parent | 3894abe211c803fa1a50840a92824e92aa31497e (diff) | |
download | relx-fc3d783511dde534f6f07c24067106126f1053b1.tar.gz relx-fc3d783511dde534f6f07c24067106126f1053b1.tar.bz2 relx-fc3d783511dde534f6f07c24067106126f1053b1.zip |
Allow optionally setting a release as permanent after relup
Support a command line argument to the `upgrade`/`downgrade`
commands: `--no-permanent`, if this is set the release will be unpacked,
installed and be made current but not permanent, when the user
is confortable with the outcomehe can issue the same command a
second time without the `--no-permanent` option.
Diffstat (limited to 'priv/templates/extended_bin')
-rwxr-xr-x | priv/templates/extended_bin | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin index 63a46d1..5cb1c04 100755 --- a/priv/templates/extended_bin +++ b/priv/templates/extended_bin @@ -52,6 +52,9 @@ relx_usage() { echo " releases/<relname>-<version>.tar.gz" echo " releases/<version>/<relname>-<version>.tar.gz" echo " releases/<version>/<relname>.tar.gz" + echo "" + echo " --no-permanent Install release package VERSION but" + echo " don't make it permanent" ;; uninstall) echo "Usage: $REL_NAME uninstall [VERSION]" @@ -66,15 +69,21 @@ relx_usage() { echo " releases/<relname>-<version>.tar.gz" echo " releases/<version>/<relname>-<version>.tar.gz" echo " releases/<version>/<relname>.tar.gz" + echo "" + echo " --no-permanent Install release package VERSION but" + echo " don't make it permanent" ;; downgrade) echo "Usage: $REL_NAME downgrade [VERSION]" - echo "Downgrade the currently running release to VERSION, it assumes" + echo "Downgrades the currently running release to VERSION, it assumes" echo "that a release package tarball has already been deployed at one" echo "of the following locations:" echo " releases/<relname>-<version>.tar.gz" echo " releases/<version>/<relname>-<version>.tar.gz" echo " releases/<version>/<relname>.tar.gz" + echo "" + echo " --no-permanent Install release package VERSION but" + echo " don't make it permanent" ;; *) echo "Usage: $REL_NAME {start|start_boot <file>|foreground|stop|restart|reboot|pid|ping|console|console_clean|console_boot <file>|attach|remote_console|upgrade|downgrade|install|uninstall|versions|escript|rpc|rpcterms|eval}" |