This commit is contained in:
qo-op 2020-05-14 01:47:12 +02:00
parent a763b288e4
commit 2875fa5a41
1 changed files with 9 additions and 1 deletions

View File

@ -60,10 +60,17 @@ extension=$(echo $nodename | cut -d '.' -f 2)
if [[ $extension == $nodename ]]; then
nodename=$nodename.local # TODO : Adpapt to Internet BOX local DNS stategy
fi
echo "ENTER Station accessible Network name !!! Suggestion : $nodename"
read nodename
sudo sed -i "s/_SERVERNAME_/$nodename/g" /etc/nginx/conf.d/loveland.conf
# INSTALL LOVELand WebSite LINKs
sudo ln -s /home/$YOU/.zen/astroport/www/LOVELand/ /var/www/loveland
if [[ ! -L /var/www/loveland ]]; then
sudo ln -s /home/$YOU/.zen/astroport/www/LOVELand/ /var/www/loveland
fi
sudo chmod 777 /var/www/loveland/jukebox/albumart
sudo chmod 777 /var/www/loveland/jukebox/prefs
@ -74,6 +81,7 @@ if [[ $err ]]; then
exit 1
else
echo -e "${c_green}LOVELand a été installé avec succès$c_"
echo "http://$nodename (TRY ME)"
exit 0
fi