Warning if no freedns subdomain code is given
This commit is contained in:
parent
1302615995
commit
04478cb9fc
|
@ -1740,12 +1740,16 @@ function install_owncloud {
|
|||
service nginx restart
|
||||
|
||||
# update the dynamic DNS
|
||||
if [ $OWNCLOUD_FREEDNS_SUBDOMAIN_CODE ]; then
|
||||
if [[ $OWNCLOUD_FREEDNS_SUBDOMAIN_CODE != $FREEDNS_SUBDOMAIN_CODE ]]; then
|
||||
if ! grep -q "$OWNCLOUD_DOMAIN_NAME" /usr/bin/dynamicdns; then
|
||||
echo "# $OWNCLOUD_DOMAIN_NAME" >> /usr/bin/dynamicdns
|
||||
echo "wget -O - https://freedns.afraid.org/dynamic/update.php?$OWNCLOUD_FREEDNS_SUBDOMAIN_CODE== >> /dev/null 2>&1" >> /usr/bin/dynamicdns
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo 'WARNING: No freeDNS subdomain code given for Owncloud. It is assumed that you are using some other dynamic DNS provider.'
|
||||
fi
|
||||
|
||||
echo 'install_owncloud' >> $COMPLETION_FILE
|
||||
|
||||
|
@ -2057,12 +2061,16 @@ function install_wiki {
|
|||
service nginx restart
|
||||
|
||||
# update the dynamic DNS
|
||||
if [ $WIKI_FREEDNS_SUBDOMAIN_CODE ]; then
|
||||
if [[ $WIKI_FREEDNS_SUBDOMAIN_CODE != $FREEDNS_SUBDOMAIN_CODE ]]; then
|
||||
if ! grep -q "$WIKI_DOMAIN_NAME" /usr/bin/dynamicdns; then
|
||||
echo "# $WIKI_DOMAIN_NAME" >> /usr/bin/dynamicdns
|
||||
echo "wget -O - https://freedns.afraid.org/dynamic/update.php?$WIKI_FREEDNS_SUBDOMAIN_CODE== >> /dev/null 2>&1" >> /usr/bin/dynamicdns
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo 'WARNING: No freeDNS subdomain code given for wiki installation. It is assumed that you are using some other dynamic DNS provider.'
|
||||
fi
|
||||
|
||||
# add some post-install instructions
|
||||
if ! grep -q "Once you have set up the wiki" /home/$MY_USERNAME/README; then
|
||||
|
@ -2321,6 +2329,8 @@ quit" > $INSTALL_DIR/batch.sql
|
|||
echo "wget -O - https://freedns.afraid.org/dynamic/update.php?$MICROBLOG_FREEDNS_SUBDOMAIN_CODE== >> /dev/null 2>&1" >> /usr/bin/dynamicdns
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo 'WARNING: No freeDNS subdomain code given for microblog. It is assumed that you are using some other dynamic DNS provider.'
|
||||
fi
|
||||
|
||||
echo 'server {' > /etc/nginx/sites-available/$MICROBLOG_DOMAIN_NAME
|
||||
|
@ -2534,6 +2544,8 @@ quit" > $INSTALL_DIR/batch.sql
|
|||
echo "wget -O - https://freedns.afraid.org/dynamic/update.php?$REDMATRIX_FREEDNS_SUBDOMAIN_CODE== >> /dev/null 2>&1" >> /usr/bin/dynamicdns
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo 'WARNING: No freeDNS subdomain code given for Red Matrix. It is assumed that you are using some other dynamic DNS provider.'
|
||||
fi
|
||||
|
||||
service cron restart
|
||||
|
|
Loading…
Reference in New Issue