yggdrasil address format in deploy script

main
bashrc 2026-02-23 17:38:36 +00:00
parent 3f296c9dd1
commit d58e567498
1 changed files with 5 additions and 5 deletions

View File

@ -118,7 +118,7 @@ echo 'Creating Epicyon daemon'
echo "User=$username"; echo "User=$username";
echo "Group=$username"; echo "Group=$username";
echo "WorkingDirectory=${install_destination}"; echo "WorkingDirectory=${install_destination}";
echo "ExecStart=/usr/bin/python3 ${install_destination}/epicyon.py --http --yggdrasil --bind 0.0.0.0 --port 80 --proxy ${EPICYON_PORT} --domain ${YGGDRASIL_ADDRESS} --registration open"; echo "ExecStart=/usr/bin/python3 ${install_destination}/epicyon.py --http --yggdrasil --bind 0.0.0.0 --port 80 --proxy ${EPICYON_PORT} --domain [${YGGDRASIL_ADDRESS}] --registration open";
echo "Environment=USER=$username"; echo "Environment=USER=$username";
echo 'Environment=PYTHONUNBUFFERED=true'; echo 'Environment=PYTHONUNBUFFERED=true';
echo 'Environment=PYTHONIOENCODING=utf-8'; echo 'Environment=PYTHONIOENCODING=utf-8';
@ -248,8 +248,8 @@ if [ -f /usr/bin/pacman ]; then
web_dir=/srv/http web_dir=/srv/http
fi fi
if [ ! -d /var/www/${YGGDRASIL_ADDRESS}/htdocs ]; then if [ ! -d /var/www/[${YGGDRASIL_ADDRESS}]/htdocs ]; then
mkdir -p /var/www/${YGGDRASIL_ADDRESS}/htdocs mkdir -p /var/www/[${YGGDRASIL_ADDRESS}]/htdocs
fi fi
echo "Creating nginx virtual host for http://[${YGGDRASIL_ADDRESS}]" echo "Creating nginx virtual host for http://[${YGGDRASIL_ADDRESS}]"
@ -275,7 +275,7 @@ echo "Creating nginx virtual host for http://[${YGGDRASIL_ADDRESS}]"
echo ' index index.html;'; echo ' index index.html;';
echo ''; echo '';
echo ' location /newsmirror {'; echo ' location /newsmirror {';
echo " root /var/www/${YGGDRASIL_ADDRESS}/htdocs;"; echo " root /var/www/[${YGGDRASIL_ADDRESS}]/htdocs;";
echo ' try_files $uri =404;'; echo ' try_files $uri =404;';
echo ' }'; echo ' }';
echo ''; echo '';
@ -326,7 +326,7 @@ for d in /home/*/ ; do
done done
clear clear
echo -n "${YGGDRASIL_ADDRESS}" | qrencode -t ANSI echo -n "http://[${YGGDRASIL_ADDRESS}]" | qrencode -t ANSI
echo 'Your Epicyon yggdrasil instance is now installed.' echo 'Your Epicyon yggdrasil instance is now installed.'
echo '' echo ''
echo 'You can view it in your preferred browser by navigating to:' echo 'You can view it in your preferred browser by navigating to:'