This commit is contained in:
Bob Mottram 2016-02-23 10:09:44 +00:00
parent 39db2ddc5e
commit 8674f63771
1 changed files with 2 additions and 2 deletions

View File

@ -8601,10 +8601,10 @@ function install_gnu_social {
if [ ! -f "/etc/aliases" ]; then if [ ! -f "/etc/aliases" ]; then
touch /etc/aliases touch /etc/aliases
fi fi
if grep -q "www-data: root" /etc/aliases; then if ! grep -q "www-data: root" /etc/aliases; then
echo 'www-data: root' >> /etc/aliases echo 'www-data: root' >> /etc/aliases
fi fi
if grep -q "/var/www/$MICROBLOG_DOMAIN_NAME/htdocs/scripts/maildaemon.php" /etc/aliases; then if ! grep -q "/var/www/$MICROBLOG_DOMAIN_NAME/htdocs/scripts/maildaemon.php" /etc/aliases; then
echo "*: /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/scripts/maildaemon.php" >> /etc/aliases echo "*: /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/scripts/maildaemon.php" >> /etc/aliases
fi fi
newaliases newaliases