This commit is contained in:
qo-op 2020-05-14 02:18:00 +02:00
parent c8d90cd1b1
commit b0d7935d70
1 changed files with 9 additions and 4 deletions

View File

@ -60,6 +60,7 @@ sudo sed -i "s/_PHPVERSION_/$PHPVERSION/g" /etc/nginx/conf.d/loveland.conf
nodename=$(cat /etc/hostname)
echo "ENTER Station accessible Network name !!! Suggestion : $nodename"
read nodename
[[ $nodename == "" ]] && echo "ENTER your Node Name? (or Hit ENTER)" && read nodename
[[ $nodename == "" ]] && nodename=$(cat /etc/hostname)
sudo sed -i "s/_SERVERNAME_/$nodename/g" /etc/nginx/conf.d/loveland.conf
@ -73,10 +74,11 @@ sudo chmod 777 /var/www/loveland/jukebox/prefs
sudo systemctl restart nginx || err=1
echo "REstarting OASIS"
echo "Trying to 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 &
oasis --allow-host $nodename --host $nodename 2>&1>/dev/null &
sleep 5
if [[ $err ]]; then
echo -e "${c_red}Installation de LOVELand bizarre??$c_"
@ -84,7 +86,10 @@ if [[ $err ]]; then
exit 1
else
echo -e "${c_green}LOVE Land a été installé avec succès$c_"
echo "OPEN Love Land Portal http://$nodename (TRY ME)"
echo "LoveLand Portal link http://$nodename (TRY ME)
Add ScuttleButt Astroport PUB Invitation in http://$nodename:3000/settings
oasis.astroport.com:8008::@UeiA9iqZ0/XTjmYBht230KGr44bsr+Tl5BXSUDFv8vo=.ed25519~jd9Z4y/d/xZCF7bfuSgQSiSGLMeWFhwMosKUFhFxeEY="
exit 0
fi