|
|
@@ -23,15 +23,17 @@ ln -f -s /code/config/php7/web/pool.test.branch.conf /etc/php/7.2/fpm/pool.d/www
|
|
|
cp /data/docker/config/crontab/container-code-up /etc/crontab
|
|
|
|
|
|
# 更新代码
|
|
|
+chown -R www-data:www-data /code
|
|
|
su -c "cd /code && git pull || git reset --hard FETCH_HEAD" -s /bin/bash - www-data
|
|
|
su -c "cd /code && git checkout $PROGINN_BRANCH" -s /bin/bash - www-data
|
|
|
+chown -R www-data:www-data /boss
|
|
|
su -c "cd /boss && git pull || git reset --hard FETCH_HEAD" -s /bin/bash - www-data
|
|
|
su -c "cd /boss && git checkout $ROOTER_BRANCH" -s /bin/bash - www-data
|
|
|
+chown -R www-data:www-data /proginn-frontend
|
|
|
su -c "cd /proginn-frontend && git pull || git reset --hard FETCH_HEAD" -s /bin/bash - www-data
|
|
|
su -c "cd /proginn-frontend && git checkout $PROGINN_FRONTEND_BRANCH" -s /bin/bash - www-data
|
|
|
|
|
|
# 初始化目录
|
|
|
-chown -R www-data:www-data /code
|
|
|
chown -R www-data:www-data /var/www
|
|
|
if [[ ! -d "/data/phphub" ]]; then
|
|
|
mkdir /data/phphub
|