Updated update script
This commit is contained in:
parent
1f11384809
commit
5fc728861f
11
update.sh
11
update.sh
|
|
@ -1,6 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
restart-bot() {
|
||||
USERFILE=~/.config/systemd/user/discord-bot.service
|
||||
if [ -f "$USERFILE" ]; then
|
||||
systemctl --user restart discord-bot
|
||||
else
|
||||
systemctl restart discord-bot
|
||||
fi
|
||||
}
|
||||
|
||||
echo 'Updating...'
|
||||
git pull origin master
|
||||
echo 'Finished. Starting bot...'
|
||||
systemctl --user restart discord-bot
|
||||
restart-bot
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user