fix paths

This commit is contained in:
CanbiZ 2026-01-13 11:06:24 +01:00
parent dc9dd2a57c
commit 5558262a9e
2 changed files with 11 additions and 11 deletions

View File

@ -34,9 +34,9 @@ function update_script() {
msg_info "Backing up Configuration" msg_info "Backing up Configuration"
cp /opt/ampache/config/ampache.cfg.php /tmp/ampache.cfg.php.backup cp /opt/ampache/config/ampache.cfg.php /tmp/ampache.cfg.php.backup
cp /opt/ampache/rest/.htaccess /tmp/ampache_rest.htaccess.backup cp /opt/ampache/public/rest/.htaccess /tmp/ampache_rest.htaccess.backup
cp /opt/ampache/play/.htaccess /tmp/ampache_play.htaccess.backup cp /opt/ampache/public/play/.htaccess /tmp/ampache_play.htaccess.backup
cp /opt/ampache/channel/.htaccess /tmp/ampache_channel.htaccess.backup cp /opt/ampache/public/channel/.htaccess /tmp/ampache_channel.htaccess.backup
msg_ok "Backed up Configuration" msg_ok "Backed up Configuration"
msg_info "Backup Ampache Folder" msg_info "Backup Ampache Folder"
@ -48,10 +48,10 @@ function update_script() {
msg_info "Restoring Configuration" msg_info "Restoring Configuration"
cp /tmp/ampache.cfg.php.backup /opt/ampache/config/ampache.cfg.php cp /tmp/ampache.cfg.php.backup /opt/ampache/config/ampache.cfg.php
cp /tmp/ampache_rest.htaccess.backup /opt/ampache/rest/.htaccess cp /tmp/ampache_rest.htaccess.backup /opt/ampache/public/rest/.htaccess
cp /tmp/ampache_play.htaccess.backup /opt/ampache/play/.htaccess cp /tmp/ampache_play.htaccess.backup /opt/ampache/public/play/.htaccess
cp /tmp/ampache_channel.htaccess.backup /opt/ampache/channel/.htaccess cp /tmp/ampache_channel.htaccess.backup /opt/ampache/public/channel/.htaccess
chmod 664 /opt/ampache/rest/.htaccess /opt/ampache/play/.htaccess /opt/ampache/channel/.htaccess chmod 664 /opt/ampache/public/rest/.htaccess /opt/ampache/public/play/.htaccess /opt/ampache/public/channel/.htaccess
chown -R www-data:www-data /opt/ampache chown -R www-data:www-data /opt/ampache
rm -f /tmp/ampache*.backup rm -f /tmp/ampache*.backup
msg_ok "Restored Configuration" msg_ok "Restored Configuration"

View File

@ -36,11 +36,11 @@ fetch_and_deploy_gh_release "ampache" "ampache/ampache" "prebuild" "latest" "/op
msg_info "Setup Ampache" msg_info "Setup Ampache"
rm -rf /var/www/html rm -rf /var/www/html
ln -s /opt/ampache/public /var/www/html ln -s /opt/ampache/public /var/www/html
mv /opt/ampache/rest/.htaccess.dist /opt/ampache/rest/.htaccess mv /opt/ampache/public/rest/.htaccess.dist /opt/ampache/public/rest/.htaccess
mv /opt/ampache/play/.htaccess.dist /opt/ampache/play/.htaccess mv /opt/ampache/public/play/.htaccess.dist /opt/ampache/public/play/.htaccess
mv /opt/ampache/channel/.htaccess.dist /opt/ampache/channel/.htaccess mv /opt/ampache/public/channel/.htaccess.dist /opt/ampache/public/channel/.htaccess
cp /opt/ampache/config/ampache.cfg.php.dist /opt/ampache/config/ampache.cfg.php cp /opt/ampache/config/ampache.cfg.php.dist /opt/ampache/config/ampache.cfg.php
chmod 664 /opt/ampache/rest/.htaccess /opt/ampache/play/.htaccess /opt/ampache/channel/.htaccess chmod 664 /opt/ampache/public/rest/.htaccess /opt/ampache/public/play/.htaccess /opt/ampache/public/channel/.htaccess
chown -R www-data:www-data /opt/ampache chown -R www-data:www-data /opt/ampache
msg_ok "Set up Ampache" msg_ok "Set up Ampache"