mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-05-16 00:30:25 +00:00
FIx a bug in update procedure and general code maintenance (#3974)
This commit is contained in:
parent
3297df1d50
commit
0373324653
@ -35,10 +35,9 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating $APP to v${RELEASE}"
|
msg_info "Updating $APP to v${RELEASE}"
|
||||||
temp_file=$(mktemp)
|
temp_file=$(mktemp)
|
||||||
cd $temp_file
|
|
||||||
curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz" -o "$temp_file"
|
curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.gz" -o "$temp_file"
|
||||||
tar xzf $temp_file
|
tar xzf "$temp_file"
|
||||||
cp -rf wger-$RELEASE/* /home/wger/src
|
cp -rf wger-"$RELEASE"/* /home/wger/src
|
||||||
cd /home/wger/src
|
cd /home/wger/src
|
||||||
python3 manage.py migrate &>/dev/null
|
python3 manage.py migrate &>/dev/null
|
||||||
yarn install &>/dev/null
|
yarn install &>/dev/null
|
||||||
@ -52,7 +51,7 @@ curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.
|
|||||||
msg_ok "Started $APP"
|
msg_ok "Started $APP"
|
||||||
|
|
||||||
msg_info "Cleaning Up"
|
msg_info "Cleaning Up"
|
||||||
rm -rf $temp_file
|
rm -rf "$temp_file"
|
||||||
msg_ok "Cleanup Completed"
|
msg_ok "Cleanup Completed"
|
||||||
|
|
||||||
msg_ok "Update Successful"
|
msg_ok "Update Successful"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user