mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
Update 5etools
This commit is contained in:
parent
a0baf1cecc
commit
84d36eba84
@ -57,14 +57,12 @@ function update_script() {
|
|||||||
$STD npm run build
|
$STD npm run build
|
||||||
cd ~
|
cd ~
|
||||||
echo "${RELEASE}" >"/opt/${APP}_version.txt"
|
echo "${RELEASE}" >"/opt/${APP}_version.txt"
|
||||||
msg_ok "Updated base 5etools"
|
|
||||||
|
|
||||||
chown -R www-data: "/opt/${APP}"
|
chown -R www-data: "/opt/${APP}"
|
||||||
chmod -R 755 "/opt/${APP}"
|
chmod -R 755 "/opt/${APP}"
|
||||||
|
msg_ok "Updated base 5etools"
|
||||||
# Cleaning up
|
# Cleaning up
|
||||||
msg_info "Cleaning Up"
|
msg_info "Cleaning Up"
|
||||||
rm "${RELEASE}.zip"
|
rm -rf /opt/${RELEASE}.zip
|
||||||
$STD apt-get -y autoremove
|
$STD apt-get -y autoremove
|
||||||
$STD apt-get -y autoclean
|
$STD apt-get -y autoclean
|
||||||
msg_ok "Cleanup Completed"
|
msg_ok "Cleanup Completed"
|
||||||
@ -87,11 +85,11 @@ function update_script() {
|
|||||||
rm -rf "/opt/${APP}/img"
|
rm -rf "/opt/${APP}/img"
|
||||||
mv "${APP}-img-${IMG_RELEASE:1}" "/opt/${APP}/img"
|
mv "${APP}-img-${IMG_RELEASE:1}" "/opt/${APP}/img"
|
||||||
echo "${IMG_RELEASE}" >"/opt/${APP}_IMG_version.txt"
|
echo "${IMG_RELEASE}" >"/opt/${APP}_IMG_version.txt"
|
||||||
msg_ok "Updating 5etools images"
|
|
||||||
|
|
||||||
chown -R www-data: "/opt/${APP}"
|
chown -R www-data: "/opt/${APP}"
|
||||||
chmod -R 755 "/opt/${APP}"
|
chmod -R 755 "/opt/${APP}"
|
||||||
|
|
||||||
|
msg_ok "Updating 5etools images"
|
||||||
|
|
||||||
# Cleaning up
|
# Cleaning up
|
||||||
msg_info "Cleaning Up"
|
msg_info "Cleaning Up"
|
||||||
rm -rf /opt/${RELEASE}.zip
|
rm -rf /opt/${RELEASE}.zip
|
||||||
|
Loading…
Reference in New Issue
Block a user