From 9075978ae94310fa7a27d9881d3cecc6150ca3e9 Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Wed, 21 Aug 2013 19:09:44 +0200 Subject: [PATCH] Modification : raccourcissement des noms UNIX pour MySQL : php5_ -> php_ . --- etc/nginx/site.d/agendav/local.sh | 14 +++++++------- etc/nginx/site.d/cyclo-www/local.sh | 6 +++--- etc/nginx/site.d/cyclocamp-www/local.sh | 6 +++--- etc/nginx/site.d/davical/local.sh | 6 +++--- etc/nginx/site.d/lhc-questionnaires/local.sh | 6 +++--- etc/nginx/site.d/lhc-stats-tls/local.conf | 2 +- etc/nginx/site.d/lhc-stats/http.conf | 2 +- etc/nginx/site.d/lhc-stats/local.sh | 6 +++--- etc/nginx/site.d/lhc-stats/site.conf | 2 +- etc/nginx/site.d/lhc-www/local.sh | 2 +- etc/nginx/site.d/ptitvelo-www/local.sh | 6 +++--- etc/nginx/site.d/roundcube/local.sh | 16 ++++++++-------- etc/nginx/site.d/roundcube/remote.sh | 4 ++-- etc/postgresql/9.1/main/pg_ident.conf | 4 ++-- etc/sv/php5-fpm/local.sh | 10 +++++----- local/dovecot-user-add | 4 ++-- local/dovecot-user-del | 4 ++-- local/roundcube-chpasswd | 2 +- 18 files changed, 51 insertions(+), 51 deletions(-) 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 -- 2.20.1