浏览代码

Permissions

Bob Mottram 8 年前
父节点
当前提交
80b87cce80
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 3
    1
      src/freedombone-app-gnusocial
  2. 3
    1
      src/freedombone-app-postactiv

+ 3
- 1
src/freedombone-app-gnusocial 查看文件

@@ -534,7 +534,9 @@ function install_gnusocial_main {
534 534
     git checkout $GNUSOCIAL_COMMIT -b $GNUSOCIAL_COMMIT
535 535
     set_completion_param "gnusocial commit" "$GNUSOCIAL_COMMIT"
536 536
 
537
-    chmod a+w /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs
537
+    chmod g+w /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs
538
+    chmod a+w /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/avatar
539
+    chmod a+w /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/file
538 540
     chown www-data:www-data /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs
539 541
     chmod +x /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/scripts/maildaemon.php
540 542
 

+ 3
- 1
src/freedombone-app-postactiv 查看文件

@@ -378,7 +378,9 @@ function install_postactiv_main {
378 378
     git checkout $POSTACTIV_COMMIT -b $POSTACTIV_COMMIT
379 379
     set_completion_param "postactiv commit" "$POSTACTIV_COMMIT"
380 380
 
381
-    chmod a+w /var/www/$POSTACTIV_DOMAIN_NAME/htdocs
381
+    chmod g+w /var/www/$POSTACTIV_DOMAIN_NAME/htdocs
382
+    chmod a+w /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/avatar
383
+    chmod a+w /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/file
382 384
     chown www-data:www-data /var/www/$POSTACTIV_DOMAIN_NAME/htdocs
383 385
     chmod +x /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/scripts/maildaemon.php
384 386