aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostclass/xmpp_server
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-11-24 22:27:52 -0500
committerCullum Smith <cullum@sacredheartsc.com>2024-11-24 22:27:52 -0500
commitf2735a201192f01a461f4c3e75d9636dc54e2ec2 (patch)
treecec1095068e9e8bbbe9b61455bac974212bb9f22 /scripts/hostclass/xmpp_server
parent340f777a8db62139e252ce96ef44bc57bcf03300 (diff)
downloadinfrastructure-f2735a201192f01a461f4c3e75d9636dc54e2ec2.tar.gz
rotate nginx logs
Diffstat (limited to 'scripts/hostclass/xmpp_server')
-rw-r--r--scripts/hostclass/xmpp_server3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/hostclass/xmpp_server b/scripts/hostclass/xmpp_server
index 667014f..5f2dc1d 100644
--- a/scripts/hostclass/xmpp_server
+++ b/scripts/hostclass/xmpp_server
@@ -107,6 +107,7 @@ install_template -m 0644 "${nginx_conf_dir}/nginx.conf"
[ -f "${nginx_conf_dir}/vhosts.conf" ] || install -Cv -m 0644 /dev/null "${nginx_conf_dir}/vhosts.conf"
sysrc -v nginx_enable=YES
service nginx restart
+install_file -m 0644 /etc/newsyslog.conf.d/nginx.conf
# Retrieve webserver certificate via ACME.
install_template -m 0600 /usr/local/etc/sudoers.d/acme
@@ -122,7 +123,7 @@ service nginx restart
# Enable and start daemons.
sysrc -v prosody_enable=YES
-service prosody restart
+[ "${prosody_restart:-}" = false ] || service prosody restart
service nginx restart
# Create access role.