From: Julien Moutinho Date: Wed, 21 Aug 2013 17:09:44 +0000 (+0200) Subject: Modification : raccourcissement des noms UNIX pour MySQL : php5_ -> php_ . X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=commitdiff_plain;h=9075978ae94310fa7a27d9881d3cecc6150ca3e9 Modification : raccourcissement des noms UNIX pour MySQL : php5_ -> php_ . --- diff --git a/etc/nginx/site.d/agendav/local.sh b/etc/nginx/site.d/agendav/local.sh index 3ccb68c..2003da6 100644 --- a/etc/nginx/site.d/agendav/local.sh +++ b/etc/nginx/site.d/agendav/local.sh @@ -1,11 +1,11 @@ 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 &1 >&2 | $(sudo cat "$old_passwd") EOF - sudo install -o php5_roundcube -g php5_roundcube -m 0640 /dev/stdin "$new_passwd" + sudo install -o php_roundcube -g php_roundcube -m 0640 /dev/stdin "$new_passwd" sudo mv -f "$new_passwd" "$old_passwd" fi # setup_nss @@ -100,7 +100,7 @@ shift # setup_roundcube if test "${purge:+set}" then - sudo -u php5_roundcube psql -1AqtX --set ON_ERROR_STOP=1 -U roundcube roundcube <<-EOF + sudo -u php_roundcube psql -1AqtX --set ON_ERROR_STOP=1 -U roundcube roundcube <<-EOF DO LANGUAGE plpgsql \$\$ DECLARE uid integer; BEGIN diff --git a/local/roundcube-chpasswd b/local/roundcube-chpasswd index 92cf455..8dd78ba 100755 --- a/local/roundcube-chpasswd +++ b/local/roundcube-chpasswd @@ -1,6 +1,6 @@ #!/bin/sh -efu -test "$(id -n -u)" = php5_roundcube +test "$(id -n -u)" = php_roundcube IFS=: read -r user password IFS=@ read -r user domain <<-EOF