소스 검색

koel upgrades

Bob Mottram 8 년 전
부모
커밋
b50521d344
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7
    1
      src/freedombone-app-koel

+ 7
- 1
src/freedombone-app-koel 파일 보기

165
         KOEL_DOMAIN_NAME=$(get_completion_param "koel domain")
165
         KOEL_DOMAIN_NAME=$(get_completion_param "koel domain")
166
     fi
166
     fi
167
 
167
 
168
+    systemctl stop koel
169
+
168
     # update to the next commit
170
     # update to the next commit
169
     function_check set_repo_commit
171
     function_check set_repo_commit
170
     set_repo_commit /var/www/$KOEL_DOMAIN_NAME/htdocs "koel commit" "$KOEL_COMMIT" $KOEL_REPO
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