Modification : raccourcissement des noms UNIX pour MySQL : php5_ -> php_ .
[lhc/ateliers.git] / etc / nginx / site.d / roundcube / local.sh
index 6920cef..67a2675 100644 (file)
@@ -7,9 +7,9 @@ sudo install -m 664 -o www -g www \
  "$tool"/var/pub/x509/"$site"."$local_domainname"/crt+ca.pem \
  /etc/nginx/x509.d/"$site"/crt.pem
 
  "$tool"/var/pub/x509/"$site"."$local_domainname"/crt+ca.pem \
  /etc/nginx/x509.d/"$site"/crt.pem
 
-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"
 
 "$tool"/local/runit-sv-configure postgres
 "$tool"/local/runit-sv-start     postgres
 
 "$tool"/local/runit-sv-configure postgres
 "$tool"/local/runit-sv-start     postgres
@@ -78,7 +78,7 @@ sudo debconf-set-selections <<-EOF || true
        # for internal use.
        roundcube-core  roundcube/internal/skip-preseed boolean false
        # PostgreSQL username for roundcube:
        # for internal use.
        roundcube-core  roundcube/internal/skip-preseed boolean false
        # PostgreSQL username for roundcube:
-       roundcube-core  roundcube/db/app-user   string  php5_$site
+       roundcube-core  roundcube/db/app-user   string  php_$site
        # Reinstall database for roundcube?
        roundcube-core  roundcube/dbconfig-reinstall    boolean false
        # Connection method for MySQL database of roundcube:
        # Reinstall database for roundcube?
        roundcube-core  roundcube/dbconfig-reinstall    boolean false
        # Connection method for MySQL database of roundcube:
@@ -152,14 +152,14 @@ sudo etckeeper commit -m "runit-configure nginx -- $site"
  roundcube \
  roundcube-pgsql \
  roundcube-plugins
  roundcube \
  roundcube-pgsql \
  roundcube-plugins
-sudo chgrp php5_$site /var/log/roundcube/
+sudo chgrp php_$site /var/log/roundcube/
 
 
-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 \
  /etc/"$site"
 sudo find "$tool"/etc/"$site" -type f \
- -exec install -m 640 -o root -g php5_"$site" \
+ -exec install -m 640 -o root -g php_"$site" \
  -t /etc/"$site"/ {} +
 
  -t /etc/"$site"/ {} +
 
-sudo install -m 500 -o php5_"$site" -g root \
+sudo install -m 500 -o php_"$site" -g root \
   "$tool"/local/roundcube-chpasswd \
  /usr/local/bin/roundcube-chpasswd
   "$tool"/local/roundcube-chpasswd \
  /usr/local/bin/roundcube-chpasswd