mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-30 08:11:00 +02:00
simplify
This commit is contained in:
@@ -64,7 +64,6 @@ function update_script() {
|
|||||||
sed -i 's|^TA_APP_DIR=/opt/tubearchivist$|TA_APP_DIR=/opt/tubearchivist/backend|' /opt/tubearchivist/.env
|
sed -i 's|^TA_APP_DIR=/opt/tubearchivist$|TA_APP_DIR=/opt/tubearchivist/backend|' /opt/tubearchivist/.env
|
||||||
sed -i 's|^TA_CACHE_DIR=/opt/tubearchivist/cache$|TA_CACHE_DIR=/cache|' /opt/tubearchivist/.env
|
sed -i 's|^TA_CACHE_DIR=/opt/tubearchivist/cache$|TA_CACHE_DIR=/cache|' /opt/tubearchivist/.env
|
||||||
sed -i 's|^TA_MEDIA_DIR=/opt/tubearchivist/media$|TA_MEDIA_DIR=/youtube|' /opt/tubearchivist/.env
|
sed -i 's|^TA_MEDIA_DIR=/opt/tubearchivist/media$|TA_MEDIA_DIR=/youtube|' /opt/tubearchivist/.env
|
||||||
|
|
||||||
ln -sfn /opt/tubearchivist/cache /cache
|
ln -sfn /opt/tubearchivist/cache /cache
|
||||||
# /youtube may already be a user-managed Proxmox bind mount. Only create the symlink if nothing is there
|
# /youtube may already be a user-managed Proxmox bind mount. Only create the symlink if nothing is there
|
||||||
if [[ ! -e /youtube ]]; then
|
if [[ ! -e /youtube ]]; then
|
||||||
@@ -73,8 +72,6 @@ function update_script() {
|
|||||||
elif ! mountpoint -q /youtube && [[ ! -L /youtube ]]; then
|
elif ! mountpoint -q /youtube && [[ ! -L /youtube ]]; then
|
||||||
msg_error "/youtube exists but is neither a mount nor a symlink - check manually"
|
msg_error "/youtube exists but is neither a mount nor a symlink - check manually"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
ln -sf /opt/tubearchivist/.env /opt/tubearchivist/backend/.env
|
ln -sf /opt/tubearchivist/.env /opt/tubearchivist/backend/.env
|
||||||
msg_ok "Restored Configuration"
|
msg_ok "Restored Configuration"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user