Improvements

This commit is contained in:
Daniil Gentili 2019-04-22 11:16:44 +00:00
parent 37423ea070
commit 0f58b00bcb
2 changed files with 2 additions and 3 deletions

View File

@ -52,12 +52,11 @@ HTTP=" server {\n
echo -e $HTTP > yp.conf
sudo mv yp.conf /etc/nginx/conf.d/yp.conf
sudo service nginx start
sudo cp script.sh /usr/bin/yayponies-update.sh
yayponies-update.sh $PWD localhost:8808
./yayponies-update.sh $PWD localhost:8808
crontab -l > /tmp/yayponies-cron
sed -i '/yayponies-update/d' /tmp/yayponies-cron
echo "*/10 * * * * /usr/bin/yayponies-update.sh $PWD localhost:8808" >> /tmp/yayponies-cron
echo "* */10 * * * $PWD/yayponies-update.sh $PWD localhost:8808" >> /tmp/yayponies-cron
crontab /tmp/yayponies-cron
rm /tmp/yayponies-cron