mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-11 09:54:36 +00:00
myspeed: fix update process if no data exist (#6795)
This commit is contained in:
parent
79f3662636
commit
f1cdef1f9b
1 changed files with 4 additions and 1 deletions
|
@ -44,7 +44,10 @@ function update_script() {
|
|||
msg_info "Updating ${APP} to ${RELEASE}"
|
||||
cd /opt/myspeed
|
||||
$STD npm install
|
||||
if [[ -d /opt/myspeed_bak/data ]]; then
|
||||
mkdir -p /opt/myspeed/data/
|
||||
cp -r /opt/myspeed_bak/data/* /opt/myspeed/data/
|
||||
fi
|
||||
msg_ok "Updated ${APP} to ${RELEASE}"
|
||||
|
||||
msg_info "Starting ${APP} Service"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue