From 3f7913a85dbe677f4a2e0ccff78fcbc71099e233 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 27 Sep 2014 11:01:36 +0100 Subject: [PATCH] Microblog aliases --- install-freedombone.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index 19311f18..cfdd1b8e 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -2292,6 +2292,17 @@ quit" > $INSTALL_DIR/batch.sql mysql -u root --password="$MARIADB_PASSWORD" < $INSTALL_DIR/batch.sql shred -zu $INSTALL_DIR/batch.sql + if [ ! -f "/etc/aliases" ]; then + touch /etc/aliases + fi + if grep -q "www-data: root" /etc/aliases; then + echo 'www-data: root' >> /etc/aliases + fi + 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 + fi + newaliases + # update the dynamic DNS if [[ $MICROBLOG_FREEDNS_SUBDOMAIN_CODE != $FREEDNS_SUBDOMAIN_CODE ]]; then if ! grep -q "$MICROBLOG_DOMAIN_NAME" /usr/bin/dynamicdns; then