Correction : vm_{hosted,remote} : chemins et noms .
[lhc/ateliers.git] / etc / init.d / tmpfs
index 3a9915c..fff6f88 100755 (executable)
@@ -27,19 +27,27 @@ do_start() {
                if mountpoint -q /run/shm &&
                        test -f /run/shm/.tmpfs
                 then
+                       set -x
                        sudo install -d -m 1777 -o root -g root \
-                        /run/shm/cache
+                        /run/shm/cache \
+                        /run/shm/tmp
                        
-                       ! getent passwd www-data ||
-                       sudo install -d -m 660 -o www-data -g www-data \
+                       ! getent passwd www-data >/dev/null ||
+                       sudo install -d -m 770 -o www-data -g www-data \
                         /run/shm/cache/nginx \
                         /run/shm/cache/nginx/fastcgi \
                         /run/shm/cache/nginx/client_body
                        
-                       ! getent passwd php5 ||
-                       sudo install -d -m 1667 -o php5 -g php5 \
+                       ! getent passwd php5 >/dev/null ||
+                       sudo install -d -m 1771 -o php5 -g php5 \
+                        /run/php5 \
+                        /run/php5/fpm \
                         /run/shm/cache/php5 \
                         /run/shm/cache/php5/fpm
+                       
+                       ! getent passwd gitweb >/dev/null ||
+                       sudo install -d -m 770 -o gitweb -g gitweb \
+                        /run/tmp/gitweb
                 fi
                
                ES=$?