This commit is contained in:
CanbiZ 2026-01-13 11:30:20 +01:00
commit 99efd578d4
2 changed files with 5 additions and 2 deletions

View File

@ -36,6 +36,7 @@ function update_script() {
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/public/rest/.htaccess /tmp/ampache_rest.htaccess.backup cp /opt/ampache/public/rest/.htaccess /tmp/ampache_rest.htaccess.backup
cp /opt/ampache/public/play/.htaccess /tmp/ampache_play.htaccess.backup cp /opt/ampache/public/play/.htaccess /tmp/ampache_play.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"
@ -49,7 +50,8 @@ function update_script() {
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/public/rest/.htaccess cp /tmp/ampache_rest.htaccess.backup /opt/ampache/public/rest/.htaccess
cp /tmp/ampache_play.htaccess.backup /opt/ampache/public/play/.htaccess cp /tmp/ampache_play.htaccess.backup /opt/ampache/public/play/.htaccess
chmod 664 /opt/ampache/public/rest/.htaccess /opt/ampache/public/play/.htaccess cp /tmp/ampache_channel.htaccess.backup /opt/ampache/public/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

@ -38,8 +38,9 @@ rm -rf /var/www/html
ln -s /opt/ampache/public /var/www/html ln -s /opt/ampache/public /var/www/html
mv /opt/ampache/public/rest/.htaccess.dist /opt/ampache/public/rest/.htaccess mv /opt/ampache/public/rest/.htaccess.dist /opt/ampache/public/rest/.htaccess
mv /opt/ampache/public/play/.htaccess.dist /opt/ampache/public/play/.htaccess mv /opt/ampache/public/play/.htaccess.dist /opt/ampache/public/play/.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/public/rest/.htaccess /opt/ampache/public/play/.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"