diff --git a/.install/loveland.sh b/.install/loveland.sh index 4168106..0cb197c 100755 --- a/.install/loveland.sh +++ b/.install/loveland.sh @@ -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