diff --git a/Makefile b/Makefile index 0c286bea451bcfd79fd93947314fe32eb6ba9c03..d08cb8e8c4b4e97cedc06ac1ab731a3c1612ce96 100644 --- a/Makefile +++ b/Makefile @@ -104,15 +104,20 @@ copy_config_srv: @cp -n config/server/users.json config/server/nexus.conf $(SERVER_BASEDIR)/config/ @echo "OK" +# Only save the previous nexus-server binary (in case a revert were needed) +save_old_srv_binaries: + @echo "Saving old server binaries" + @cp $(SERVER_BASEDIR)/bin/nexus-server $(SERVER_BASEDIR)/bin/nexus-server.old + copy_binaries_srv: - @echo "Copying binaries" + @echo "Copying server binaries" @cp src/server/nexus-server $(SERVER_BASEDIR)/bin @cp tools/genpwd/genpwd $(SERVER_BASEDIR)/bin @cp tools/template_creator $(SERVER_BASEDIR)/bin @cp tools/vm_run $(SERVER_BASEDIR)/bin @echo "OK" -update_srv: check_prefix_var prepare_update_srv copy_binaries_srv +update_srv: check_prefix_var prepare_update_srv save_old_srv_binaries copy_binaries_srv @echo "Successfully updated nexus-server in $(SERVER_BASEDIR)" prepare_update_srv: