Pārlūkot izejas kodu

Write permissions to data directory

Bob Mottram 7 gadus atpakaļ
vecāks
revīzija
28d7a0fa2f
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3
    2
      src/freedombone-app-privatebin

+ 3
- 2
src/freedombone-app-privatebin Parādīt failu

54
 
54
 
55
     find "${pbpath}/" -type f -print0 | xargs -0 chmod 0640
55
     find "${pbpath}/" -type f -print0 | xargs -0 chmod 0640
56
     find "${pbpath}/" -type d -print0 | xargs -0 chmod 0550
56
     find "${pbpath}/" -type d -print0 | xargs -0 chmod 0550
57
-    find "${pbdata}/" -type f -print0 | xargs -0 chmod 0640
58
-    find "${pbdata}/" -type d -print0 | xargs -0 chmod 0750
59
 
57
 
60
     chown -R ${rootuser}:${htgroup} "${pbpath}/"
58
     chown -R ${rootuser}:${htgroup} "${pbpath}/"
59
+    chown -R www-data:www-data ${pbdata}
61
 }
60
 }
62
 
61
 
63
 function logging_on_privatebin {
62
 function logging_on_privatebin {
442
     sed -i 's|sizelimit =.*|sizelimit = 32768|g' /var/www/$PRIVATEBIN_DOMAIN_NAME/htdocs/cfg/conf.php
441
     sed -i 's|sizelimit =.*|sizelimit = 32768|g' /var/www/$PRIVATEBIN_DOMAIN_NAME/htdocs/cfg/conf.php
443
     sed -i 's|defaultformatter =.*|defaultformatter = "markdown"|g' /var/www/$PRIVATEBIN_DOMAIN_NAME/htdocs/cfg/conf.php
442
     sed -i 's|defaultformatter =.*|defaultformatter = "markdown"|g' /var/www/$PRIVATEBIN_DOMAIN_NAME/htdocs/cfg/conf.php
444
 
443
 
444
+    mkdir -p /var/www/$PRIVATEBIN_DOMAIN_NAME/htdocs/data
445
+
445
     secure_privatebin
446
     secure_privatebin
446
 
447
 
447
     systemctl restart php7.0-fpm
448
     systemctl restart php7.0-fpm