1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-22 02:17:26 +00:00

Copy systemd service files before linking to avoid issue with order of mounting filesystems (#1688)

This commit is contained in:
Carl Reinke 2019-12-01 14:15:04 -07:00 committed by Joshua Tauberer
parent 52c68c6510
commit 802e7a1f4d
2 changed files with 4 additions and 2 deletions

View File

@ -93,7 +93,8 @@ source $venv/bin/activate
exec python `pwd`/management/daemon.py exec python `pwd`/management/daemon.py
EOF EOF
chmod +x $inst_dir/start chmod +x $inst_dir/start
hide_output systemctl link -f conf/mailinabox.service cp -f conf/mailinabox.service /lib/systemd/system/mailinabox.service
hide_output systemctl link -f /lib/systemd/system/mailinabox.service
hide_output systemctl daemon-reload hide_output systemctl daemon-reload
hide_output systemctl enable mailinabox.service hide_output systemctl enable mailinabox.service

View File

@ -64,7 +64,8 @@ mkdir -p /var/lib/munin-node/plugin-state/
# Create a systemd service for munin. # Create a systemd service for munin.
ln -sf $(pwd)/management/munin_start.sh /usr/local/lib/mailinabox/munin_start.sh ln -sf $(pwd)/management/munin_start.sh /usr/local/lib/mailinabox/munin_start.sh
chmod 0744 /usr/local/lib/mailinabox/munin_start.sh chmod 0744 /usr/local/lib/mailinabox/munin_start.sh
hide_output systemctl link -f conf/munin.service cp -f conf/munin.service /lib/systemd/system/munin.service
hide_output systemctl link -f /lib/systemd/system/munin.service
hide_output systemctl daemon-reload hide_output systemctl daemon-reload
hide_output systemctl unmask munin.service hide_output systemctl unmask munin.service
hide_output systemctl enable munin.service hide_output systemctl enable munin.service