sudo adduser www-"$site"-tls www-"$site"
-sudo adduser php5_"$site" www-"$site"
-sudo adduser php5_"$site" postgres-data
-sudo adduser php5_"$site" log-php5-"$site"
+sudo adduser php_"$site" www-"$site"
+sudo adduser php_"$site" postgres-data
+sudo adduser php_"$site" log-php-"$site"
hint="run before: remote/runit-configure nginx -- $site"
assert "sudo test -f /etc/$site/config.php" hint
-sudo chgrp php5_$site /etc/"$site"/config.php
+sudo chgrp php_$site /etc/"$site"/config.php
sudo sv start postgres
while ! sudo -u postgres psql </dev/null
)"
then
sudo cat "$home"/sql/pgsql.schema.sql |
- sudo -u php5_"$site" psql -f - -U "$site" --set ON_ERROR_STOP=1 "$site"
+ sudo -u php_"$site" psql -f - -U "$site" --set ON_ERROR_STOP=1 "$site"
fi
-sudo install -d -m 750 -o root -g php5_"$site" \
+sudo install -d -m 750 -o root -g php_"$site" \
/etc/"$site"
sudo find "$tool"/etc/"$site" -type f \
-not -name config.php \
- -exec install -m 640 -o root -g php5_"$site" \
+ -exec install -m 640 -o root -g php_"$site" \
-t /etc/"$site"/ {} +