Changes between Version 11 and Version 12 of configure_new_server


Ignore:
Timestamp:
Sep 28, 2007, 6:30:59 AM (17 years ago)
Author:
Daniel Kahn Gillmor
Comment:

cleaned up the queries against passwd database

Legend:

Unmodified
Added
Removed
Modified
  • configure_new_server

    v11 v12  
    9797# use /var/lib/phpmyadmin as home dir because it already exists
    9898
    99 if [ -z $(getent passwd|grep phpmyadmin) ]; then
     99if ! (getent passwd phpmyadmin) ; then
    100100adduser --system --disabled-login --quiet --home /var/lib/phpmyadmin --shell /bin/false -gid 65534 phpmyadmin
    101101fi
     
    112112#
    113113# use /var/log/horde as home directory because it already exists
    114 if [ -z $(getent passwd|grep horde) ]; then
     114if ! (getent passwd horde) ; then
    115115adduser --system --disabled-login --quiet --home /var/log/horde --shell /bin/false -gid 65534 horde
    116116fi
     
    141141done
    142142
    143 if [ -z $(getent passwd|grep squirrelmail) ]; then
     143if ! (getent passwd|grep squirrelmail) ; then
    144144adduser --system --disabled-login --quiet --home /var/lib/squirrelmail/data --shell /bin/false -gid 65534 squirrelmail
    145145fi