Update tracktor.sh
This commit is contained in:
parent
3491e9b6c3
commit
8421aea535
@ -34,6 +34,10 @@ function update_script() {
|
|||||||
systemctl stop tracktor
|
systemctl stop tracktor
|
||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
|
msg_info "Creating Backup"
|
||||||
|
cp /opt/tracktor/app/server/.env /opt/tracktor.env
|
||||||
|
msg_ok "Created Backup"
|
||||||
|
|
||||||
msg_info "Updating ${APP}"
|
msg_info "Updating ${APP}"
|
||||||
setup_nodejs
|
setup_nodejs
|
||||||
fetch_and_deploy_gh_release "tracktor" "javedh-dev/tracktor"
|
fetch_and_deploy_gh_release "tracktor" "javedh-dev/tracktor"
|
||||||
@ -43,6 +47,10 @@ function update_script() {
|
|||||||
$STD npm run build
|
$STD npm run build
|
||||||
msg_ok "Updated $APP"
|
msg_ok "Updated $APP"
|
||||||
|
|
||||||
|
msg_info "Restoring Backup"
|
||||||
|
cp /opt/tracktor.env /opt/tracktor/app/server/.env
|
||||||
|
msg_ok "Restored Backup"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start tracktor
|
systemctl start tracktor
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user