Skip to content
Snippets Groups Projects
Commit fe44e558 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Renamed some vars (refs #19005).

parent 5fe2179f
No related branches found
No related tags found
No related merge requests found
...@@ -13,8 +13,8 @@ sed -i "s@192\.168\.40\..*@${NETWORK_GATEWAY}@" /etc/network/interfaces ...@@ -13,8 +13,8 @@ sed -i "s@192\.168\.40\..*@${NETWORK_GATEWAY}@" /etc/network/interfaces
if ( test -f /usr/sbin/burp ) if ( test -f /usr/sbin/burp )
then then
# changer burp status IP # changer burp status IP
sed -i "s@^CUST_BURP_MAIL_DEST=.*@CUST_BURP_MAIL_DEST=${CUST_BURP_MAIL_DEST}@" /root/burp-custom.sh sed -i "s@^BURP_CLIENT_MAIL_DEST=.*@BURP_CLIENT_MAIL_DEST=${BURP_CLIENT_MAIL_DEST}@" /root/burp-custom.sh
sed -i "s@admin: .*@admin: ${CUST_BURP_MAIL_DEST}" /etc/aliases sed -i "s@admin: .*@admin: ${BURP_CLIENT_MAIL_DEST}" /etc/aliases
newaliases newaliases
fi fi
...@@ -111,11 +111,11 @@ NB_MAX=$(wc -l /usr/local/WowzaStreamingEngine/conf/Server.xml | awk '{print$1}' ...@@ -111,11 +111,11 @@ NB_MAX=$(wc -l /usr/local/WowzaStreamingEngine/conf/Server.xml | awk '{print$1}'
fi fi
fi fi
# set DEFAULT_FROM_EMAIL # set email sender
if ( ! test -z ${DEFAULT_FROM_EMAIL} ) if ( ! test -z ${EMAIL_SENDER} )
then then
echo "#DEFAULT_FROM_EMAIL = '${DEFAULT_FROM_EMAIL}'" >> /etc/mediaserver/msconf.py echo "#DEFAULT_FROM_EMAIL = '${EMAIL_SENDER}'" >> /etc/mediaserver/msconf.py
echo "#DEFAULT_FROM_EMAIL = '${DEFAULT_FROM_EMAIL}'" >> /home/skyreach/htdocs/skyreach_site/settings_override.py echo "#DEFAULT_FROM_EMAIL = '${EMAIL_SENDER}'" >> /home/skyreach/htdocs/skyreach_site/settings_override.py
fi fi
# set locale # set locale
......
...@@ -45,5 +45,5 @@ echo "ssh $(service ssh status | grep Active)" >> /root/deployment.results ...@@ -45,5 +45,5 @@ echo "ssh $(service ssh status | grep Active)" >> /root/deployment.results
echo "uwsgi $(service uwsgi status | grep Active)" >> /root/deployment.results echo "uwsgi $(service uwsgi status | grep Active)" >> /root/deployment.results
echo "" >> /root/deployment.results echo "" >> /root/deployment.results
cat /root/deployment.results | mail -aFrom:${DEFAULT_FROM_EMAIL} -s "$(hostname) deployed configuration" deployment@ubicast.eu cat /root/deployment.results | mail -aFrom:${EMAIL_SENDER} -s "$(hostname) deployed configuration" deployment@ubicast.eu
echo -e "${CYAN}A mail has been sent to deployment@ubicast.eu${NC}" echo -e "${CYAN}A mail has been sent to deployment@ubicast.eu${NC}"
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
source /root/envsetup/envsetup.conf source /root/envsetup/envsetup.conf
# set SMTP # set SMTP
if ( ! test -z ${SMTP_SERVER} ) if ( ! test -z ${EMAIL_SMTP_SERVER} )
then then
sed -i "s@relayhost = .*@relayhost = ${SMTP_SERVER}@" /etc/postfix/main.cf sed -i "s@relayhost = .*@relayhost = ${EMAIL_SMTP_SERVER}@" /etc/postfix/main.cf
fi fi
...@@ -3,7 +3,7 @@ source /root/envsetup/envsetup.conf ...@@ -3,7 +3,7 @@ source /root/envsetup/envsetup.conf
# Conf setup # Conf setup
sed -i "s@^NTP_SERVER1 = .*@NTP_SERVER1 = '${NTP}'@" /root/envsetup/conf.py sed -i "s@^NTP_SERVER1 = .*@NTP_SERVER1 = '${NTP}'@" /root/envsetup/conf.py
sed -i "s@^SMTP_SERVER = .*@SMTP_SERVER = '${SMTP_SERVER}'@" /root/envsetup/conf.py sed -i "s@^EMAIL_SMTP_SERVER = .*@EMAIL_SMTP_SERVER = '${EMAIL_SMTP_SERVER}'@" /root/envsetup/conf.py
sed -i "s@^MYSQL_ROOT_PWD = .*@MYSQL_ROOT_PWD = '${MYSQL_ROOT_PWD}'@" /root/envsetup/conf.py sed -i "s@^MYSQL_ROOT_PWD = .*@MYSQL_ROOT_PWD = '${MYSQL_ROOT_PWD}'@" /root/envsetup/conf.py
# Wowza # Wowza
sed -i "s@^wowza_server_name = .*@wowza_server_name = '${WOWZA}'@" /root/envsetup/conf.py sed -i "s@^wowza_server_name = .*@wowza_server_name = '${WOWZA}'@" /root/envsetup/conf.py
......
...@@ -19,7 +19,7 @@ def setup(interactive=True): ...@@ -19,7 +19,7 @@ def setup(interactive=True):
'echo "Replacing /etc/postfix/main.cf"', 'echo "Replacing /etc/postfix/main.cf"',
dict(line='write', template='%s/main.cf' % dir_path, target='/etc/postfix/main.cf', params=( dict(line='write', template='%s/main.cf' % dir_path, target='/etc/postfix/main.cf', params=(
('{{ hostname }}', hostname), ('{{ hostname }}', hostname),
('{{ smtp }}', utils.get_conf('SMTP_SERVER', '')), ('{{ smtp }}', utils.get_conf('EMAIL_SMTP_SERVER', '')),
)), )),
'echo "%s" > /etc/mailname' % hostname, 'echo "%s" > /etc/mailname' % hostname,
'rgrep root /etc/aliases || echo "root: sysadmin@ubicast.eu" >> /etc/aliases', 'rgrep root /etc/aliases || echo "root: sysadmin@ubicast.eu" >> /etc/aliases',
......
...@@ -40,12 +40,8 @@ SHELL_UBICAST_PWD='test' ...@@ -40,12 +40,8 @@ SHELL_UBICAST_PWD='test'
SHELL_ADMIN_PWD='test' SHELL_ADMIN_PWD='test'
# -- Emails -- # -- Emails --
# SMTP EMAIL_SMTP_SERVER=
SMTP_SERVER= EMAIL_SENDER='support@ubicast.eu'
# Django
DEFAULT_FROM_EMAIL='support@ubicast.eu'
# MediaVault
CUST_BURP_MAIL_DEST='sysadmin@ubicast.eu'
# -- Wowza -- # -- Wowza --
WOWZA_LIVE_PWD='test' WOWZA_LIVE_PWD='test'
...@@ -115,6 +111,7 @@ BURP_SERVER='backupserver.ubicast.net' ...@@ -115,6 +111,7 @@ BURP_SERVER='backupserver.ubicast.net'
BURP_MAIL_DEST='sysadmin@ubicast.eu' BURP_MAIL_DEST='sysadmin@ubicast.eu'
# default mediaserver # default mediaserver
BURP_CLIENT_NAME= BURP_CLIENT_NAME=
BURP_CLIENT_MAIL_DEST='sysadmin@ubicast.eu'
# -- HA server specific -- # -- HA server specific --
HA_NODE1='ha-ms3' HA_NODE1='ha-ms3'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment