koel upgrades

This commit is contained in:
Bob Mottram 2017-05-25 18:51:26 +01:00
parent e3064aa9c3
commit b50521d344
1 changed files with 7 additions and 1 deletions

View File

@ -165,11 +165,17 @@ function upgrade_koel {
KOEL_DOMAIN_NAME=$(get_completion_param "koel domain")
fi
systemctl stop koel
# update to the next commit
function_check set_repo_commit
set_repo_commit /var/www/$KOEL_DOMAIN_NAME/htdocs "koel commit" "$KOEL_COMMIT" $KOEL_REPO
chown -R www-data:www-data /var/www/${KOEL_DOMAIN_NAME}/htdocs
cd /var/www/${KOEL_DOMAIN_NAME}/htdocs
php artisan koel:init
chown -R www-data:www-data *
systemctl start koel
}