1
0
Fork 0
Chat bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
390 B

#!/bin/sh
set -e
go install ./cmd/pegasus ./cmd/pegasus-irc
cp -a pegasus.service ~/.config/systemd/user/pegasus.service
cp -a pegasus-irc.service ~/.config/systemd/user/pegasus-irc.service
systemctl --user daemon-reload
exit 0
if [ "$pegasusirc" = 1 ]; then
systemctl --user restart pegasus-irc
sleep 0.2
fi
if [ "$pegasus" = 1 ]; then
systemctl --user restart pegasus
fi