mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Moved scripts and made toast messages client side
This commit is contained in:
6
scripts/getnew.sh
Executable file
6
scripts/getnew.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
cd /var/www
|
||||
git stash
|
||||
git pull
|
||||
./setperms.sh
|
||||
forever restartall
|
||||
12
scripts/install.sh
Executable file
12
scripts/install.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
apt-get update
|
||||
apt-get install -y npm
|
||||
apt-get install -y nodejs
|
||||
npm install -g forever
|
||||
ln -s /usr/bin/nodejs /usr/bin/node
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/server
|
||||
forever stopall
|
||||
CMD="forever start -l /var/log/zoff.log -a --workingDir $DIR $DIR/server.js"
|
||||
crontab -l | { cat; echo "@reboot" $CMD; } | crontab -
|
||||
$CMD
|
||||
echo $CMD
|
||||
1
scripts/prodsett.sh
Executable file
1
scripts/prodsett.sh
Executable file
@@ -0,0 +1 @@
|
||||
ssh -p 1911 root@zoff.no '/var/www/getnew.sh'
|
||||
2
scripts/setperms.sh
Executable file
2
scripts/setperms.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
sudo chmod -R ugo+rwx /var/www
|
||||
|
||||
Reference in New Issue
Block a user