This commit is contained in:
Bob Mottram 2018-03-23 17:19:30 +00:00
parent 9754e7c21d
commit 8a366a6103
1 changed files with 12 additions and 12 deletions

View File

@ -418,11 +418,11 @@ function prosody_daemon_restart_script {
rm /etc/cron.daily/prosody rm /etc/cron.daily/prosody
fi fi
if [ ! -f /etc/cron.hourly/prosody ]; then if [ ! -f /etc/cron.hourly/prosody ]; then
{ '#!/bin/bash'; { echo '#!/bin/bash';
"is_active=\$(systemctl is-active prosody)"; echo "is_active=\$(systemctl is-active prosody)";
"if [[ \"\$is_active\" != 'active' ]]; then"; echo "if [[ \"\$is_active\" != 'active' ]]; then";
' systemctl restart prosody' echo ' systemctl restart prosody'
'fi'; } > /etc/cron.hourly/prosody echo 'fi'; } > /etc/cron.hourly/prosody
chmod +x /etc/cron.hourly/prosody chmod +x /etc/cron.hourly/prosody
fi fi
} }
@ -673,13 +673,13 @@ function xmpp_contact_info {
return return
fi fi
{ 'contact_info = {'; { echo 'contact_info = {';
"abuse = { \"mailto:${MY_EMAIL_ADDRESS}\", \"xmpp:${MY_USERNAME}@${HOSTNAME}\" };"; echo "abuse = { \"mailto:${MY_EMAIL_ADDRESS}\", \"xmpp:${MY_USERNAME}@${HOSTNAME}\" };";
"admin = { \"mailto:${MY_EMAIL_ADDRESS}\", \"xmpp:${MY_USERNAME}@${HOSTNAME}\" };"; echo "admin = { \"mailto:${MY_EMAIL_ADDRESS}\", \"xmpp:${MY_USERNAME}@${HOSTNAME}\" };";
"feedback = { \"mailto:${MY_EMAIL_ADDRESS}\", \"xmpp:${MY_USERNAME}@${HOSTNAME}\" };"; echo "feedback = { \"mailto:${MY_EMAIL_ADDRESS}\", \"xmpp:${MY_USERNAME}@${HOSTNAME}\" };";
"security = { \"xmpp:${MY_USERNAME}@${HOSTNAME}\" };"; echo "security = { \"xmpp:${MY_USERNAME}@${HOSTNAME}\" };";
"support = { \"xmpp:${MY_USERNAME}@${HOSTNAME}\" };"; echo "support = { \"xmpp:${MY_USERNAME}@${HOSTNAME}\" };";
'};'; } >> "$filename" echo '};'; } >> "$filename"
} }
function xmpp_modules { function xmpp_modules {