Update install
This commit is contained in:
parent
447aaf0ebc
commit
ca0a11e87a
@ -30,9 +30,6 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if check_for_gh_release "clawdbot" "clawdbot/clawdbot"; then
|
if check_for_gh_release "clawdbot" "clawdbot/clawdbot"; then
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop clawdbot
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
msg_info "Backing up Data"
|
msg_info "Backing up Data"
|
||||||
cp -r /opt/clawdbot/data /opt/clawdbot_data_backup 2>/dev/null || true
|
cp -r /opt/clawdbot/data /opt/clawdbot_data_backup 2>/dev/null || true
|
||||||
@ -53,9 +50,6 @@ function update_script() {
|
|||||||
rm -rf /opt/clawdbot_data_backup /root/.clawdbot_backup
|
rm -rf /opt/clawdbot_data_backup /root/.clawdbot_backup
|
||||||
msg_ok "Restored Data"
|
msg_ok "Restored Data"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start clawdbot
|
|
||||||
msg_ok "Started Service"
|
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user