X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Finit.d%2Ftmpfs;fp=etc%2Finit.d%2Ftmpfs;h=3a9915c9f5d4aab45f0a3261a0cff8a9906ec5cf;hb=03bfcbb4b3d51ab2fac7e293336ba230fb0a5bc0;hp=adf6c72522de002903f4e39090ab49d8ca37482e;hpb=ef3c0950dae2dfa4d258e98ad7c1dd6b30a47599;p=lhc%2Fateliers.git diff --git a/etc/init.d/tmpfs b/etc/init.d/tmpfs index adf6c72..3a9915c 100755 --- a/etc/init.d/tmpfs +++ b/etc/init.d/tmpfs @@ -24,14 +24,23 @@ do_start() { /run/nginx \ /run/nginx/fastcgi - ! mountpoint -q /run/shm || - ! test -f /run/shm/.tmpfs || - sudo install -d -m 1777 -o root -g root \ - /run/shm/cache && - sudo install -d -m 660 -o www-data -g www-data \ - /run/shm/cache/nginx \ - /run/shm/cache/nginx/fastcgi \ - /run/shm/cache/nginx/client_body + if mountpoint -q /run/shm && + test -f /run/shm/.tmpfs + then + sudo install -d -m 1777 -o root -g root \ + /run/shm/cache + + ! getent passwd www-data || + sudo install -d -m 660 -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 \ + /run/shm/cache/php5 \ + /run/shm/cache/php5/fpm + fi ES=$? [ "$VERBOSE" != no ] && log_end_msg $ES