REstarting OASIS

This commit is contained in:
qo-op 2020-05-14 02:10:45 +02:00
parent 93681011a4
commit c8d90cd1b1
1 changed files with 7 additions and 2 deletions

View File

@ -73,9 +73,14 @@ sudo chmod 777 /var/www/loveland/jukebox/prefs
sudo systemctl restart nginx || err=1
echo "REstarting OASIS"
kill -9 $(ps auxf --sort=+utime | grep -w oasis | grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}')
kill -9 $(ps auxf --sort=+utime | grep -w ssb-patchwork | grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}')
oasis --allow-host $nodename --host $nodename &
if [[ $err ]]; then
echo -e "${c_red}Installation de LOVELand incomplète $c_"
echo "POST ISSUE! https://git.p2p.legal/axiom-team/astroport/issues"
echo -e "${c_red}Installation de LOVELand bizarre??$c_"
echo "PLEASE... POST YOUR ISSUE! https://git.p2p.legal/axiom-team/astroport/issues"
exit 1
else
echo -e "${c_green}LOVE Land a été installé avec succès$c_"