trabajo-afectivo/script/systemd/install-zammad-systemd-services.sh

18 lines
330 B
Bash
Raw Normal View History

2017-09-16 15:48:42 +00:00
#!/bin/bash
#
# enable zammad systemd services
#
if [ "$(whoami)" != 'root' ]; then
echo "you need to be root to run this script!"
exit 1
fi
cp zammad.service zammad-rails.service zammad-scheduler.service zammad-websocket.service /etc/systemd/system
systemctl daemon-reload
systemctl enable zammad
systemctl start zammad