Create music directory

This commit is contained in:
Bob Mottram 2017-05-25 16:17:35 +01:00
parent 8636206713
commit 6489b42b16
1 changed files with 6 additions and 1 deletions

View File

@ -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