commit
0cb148551e
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
echo "Updating"
|
||||
#Update Node Based stuff
|
||||
cd /home/pi/Osselbot/
|
||||
cd /home/ceasharks/github/Osselbot/
|
||||
n stable
|
||||
npm upgrade
|
||||
#update code
|
||||
|
|
|
@ -355,7 +355,7 @@ client.on("message", async message => {
|
|||
if (command === "reboot"){
|
||||
function shutdown(){
|
||||
client.destroy();
|
||||
process.exit(0);
|
||||
process.exit(69);
|
||||
}
|
||||
if (message.author.id === '258325046869622785' || '216042720047661057') {
|
||||
message.reply("**Authenticated**, Restarting now.");
|
||||
|
|
|
@ -2,14 +2,16 @@
|
|||
Description="Osselbot coded for civilians all partying"
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/pi/Osselbot/src/bot-start.sh
|
||||
Restart=always
|
||||
User=pi
|
||||
Type=simple
|
||||
ExecStart=/home/ceasharks/github/Osselbot/src/bot-start.sh
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
User=root
|
||||
# Note Debian/Ubuntu uses 'nogroup', RHEL/Fedora uses 'nobody'
|
||||
Group=nogroup
|
||||
Group=root
|
||||
Environment=PATH=/usr/bin:/usr/local/bin
|
||||
Environment=NODE_ENV=production
|
||||
WorkingDirectory=/home/pi/Osselbot/src/
|
||||
WorkingDirectory=/home/ceasharks/github/Osselbot/src/
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Reference in New Issue