From 8ef981a18bf5e7012b35ecd69b82629e11ad3c68 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 13 Jan 2026 12:29:46 +0100 Subject: [PATCH] db prefill --- install/ampache-install.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/install/ampache-install.sh b/install/ampache-install.sh index 48fa2826a..811548ed5 100644 --- a/install/ampache-install.sh +++ b/install/ampache-install.sh @@ -42,17 +42,17 @@ 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 msg_ok "Set up Ampache" -# msg_info "Configuring Database Connection" -# sed -i 's|^database_hostname = .*|database_hostname = "localhost"|' /opt/ampache/config/ampache.cfg.php -# sed -i 's|^database_name = .*|database_name = "ampache"|' /opt/ampache/config/ampache.cfg.php -# sed -i 's|^database_username = .*|database_username = "ampache"|' /opt/ampache/config/ampache.cfg.php -# sed -i "s|^database_password = .*|database_password = \"${MARIADB_DB_PASS}\"|" /opt/ampache/config/ampache.cfg.php -# chown -R www-data:www-data /opt/ampache -# msg_ok "Configured Database Connection" +msg_info "Configuring Database Connection" +sed -i 's|^database_hostname = .*|database_hostname = "localhost"|' /opt/ampache/config/ampache.cfg.php +sed -i 's|^database_name = .*|database_name = "ampache"|' /opt/ampache/config/ampache.cfg.php +sed -i 's|^database_username = .*|database_username = "ampache"|' /opt/ampache/config/ampache.cfg.php +sed -i "s|^database_password = .*|database_password = \"${MARIADB_DB_PASS}\"|" /opt/ampache/config/ampache.cfg.php +chown -R www-data:www-data /opt/ampache +msg_ok "Configured Database Connection" -# msg_info "Importing Database Schema" -# mariadb -u ampache -p"${MARIADB_DB_PASS}" ampache < /opt/ampache/resources/sql/ampache.sql -# msg_ok "Imported Database Schema" +msg_info "Importing Database Schema" +mariadb -u ampache -p"${MARIADB_DB_PASS}" ampache