瀏覽代碼

koel upgrades

Bob Mottram 8 年之前
父節點
當前提交
b50521d344
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7
    1
      src/freedombone-app-koel

+ 7
- 1
src/freedombone-app-koel 查看文件

@@ -165,11 +165,17 @@ function upgrade_koel {
165 165
         KOEL_DOMAIN_NAME=$(get_completion_param "koel domain")
166 166
     fi
167 167
 
168
+    systemctl stop koel
169
+
168 170
     # update to the next commit
169 171
     function_check set_repo_commit
170 172
     set_repo_commit /var/www/$KOEL_DOMAIN_NAME/htdocs "koel commit" "$KOEL_COMMIT" $KOEL_REPO
171 173
 
172
-    chown -R www-data:www-data /var/www/${KOEL_DOMAIN_NAME}/htdocs
174
+    cd /var/www/${KOEL_DOMAIN_NAME}/htdocs
175
+    php artisan koel:init
176
+    chown -R www-data:www-data *
177
+
178
+    systemctl start koel
173 179
 }
174 180
 
175 181