From 6489b42b160281c763c5aec230ee18a58956b263 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 25 May 2017 16:17:35 +0100 Subject: [PATCH] Create music directory --- src/freedombone-app-koel | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-koel b/src/freedombone-app-koel index 88910d9e..7ef99abc 100755 --- a/src/freedombone-app-koel +++ b/src/freedombone-app-koel @@ -540,11 +540,11 @@ function install_koel { sed -i "s/ADMIN_EMAIL=.*/ADMIN_EMAIL=$MY_EMAIL_ADDRESS/g" .env sed -i "s/ADMIN_NAME=.*/ADMIN_NAME=$MY_USERNAME/g" .env sed -i "s/ADMIN_PASSWORD=.*/ADMIN_PASSWORD=$KOEL_ADMIN_PASSWORD/g" .env - sed -i "s/DB_PASSWORD=.*/DB_PASSWORD=$MARIADB_PASSWORD/g" .env sed -i 's/DB_CONNECTION=.*/DB_CONNECTION=mysql/g' .env sed -i 's/DB_HOST=.*/DB_HOST=127.0.0.1/g' .env sed -i 's/DB_DATABASE=.*/DB_DATABASE=koel/g' .env sed -i 's/DB_USERNAME=.*/DB_USERNAME=root/g' .env + sed -i "s/DB_PASSWORD=.*/DB_PASSWORD=${MARIADB_PASSWORD}/g" .env sed -i 's/MAIL_HOST=.*/MAIL_HOST=localhost/g' .env sed -i 's/MAIL_PORT=.*/MAIL_PORT=25/g' .env @@ -571,6 +571,11 @@ function install_koel { systemctl daemon-reload systemctl start koel.service + if [ ! -d /music ]; then + mkdir /music + fi + chown -R www-data:www-data /music + systemctl restart nginx APP_INSTALLED=1