Formatting

main
bashrc 2026-02-23 19:04:06 +00:00
parent a09da9b85c
commit 288e716263
1 changed files with 8 additions and 8 deletions

View File

@ -105,7 +105,7 @@ if [ ! "${YGGDRASIL_ADDRESS}" ]; then
exit 73 exit 73
fi fi
echo "Your yggdrassil address is: http://[${YGGDRASIL_ADDRESS}\]" echo "Your yggdrassil address is: http://[${YGGDRASIL_ADDRESS}]"
echo 'Creating Epicyon daemon' echo 'Creating Epicyon daemon'
{ echo '[Unit]'; { echo '[Unit]';
@ -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,11 +248,11 @@ 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}]"
{ echo 'server {'; { echo 'server {';
echo ' listen 80;'; echo ' listen 80;';
echo ' listen [::]:80;'; echo ' listen [::]:80;';
@ -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 '';
@ -306,12 +306,12 @@ ln -s /etc/nginx/sites-available/${username} /etc/nginx/sites-enabled/
systemctl restart nginx systemctl restart nginx
clear clear
echo -n "http://[${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:'
echo '' echo ''
echo "http://[${YGGDRASIL_ADDRESS}\]" echo "http://[${YGGDRASIL_ADDRESS}]"
echo '' echo ''
echo 'Then register an account. You may also want to add extra public peers' echo 'Then register an account. You may also want to add extra public peers'
echo 'within /etc/yggdrasil/yggdrasil.conf' echo 'within /etc/yggdrasil/yggdrasil.conf'