瀏覽代碼

Ensure ownership

Bob Mottram 10 年之前
父節點
當前提交
7fe83fbf27
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      src/freedombone

+ 1
- 0
src/freedombone 查看文件

@@ -8390,6 +8390,7 @@ function create_upgrade_script {
8390 8390
       echo 'git stash' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8391 8391
       echo 'git stash drop' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8392 8392
       echo 'git pull' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8393
+      echo "chown -R git:git /home/git" >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8393 8394
   fi
8394 8395
 
8395 8396
   echo 'exit 0' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME