Compare commits

...

3 Commits

Author SHA1 Message Date
M0VUB 47d9d8d166
Update xlxd-debian-installer.sh
hash clear
2022-01-11 19:27:04 +00:00
M0VUB 4578d78a59
Update xlxd-debian-installer.sh
fix apt-get
2022-01-11 19:18:06 +00:00
M0VUB 6b33b3171e
Update xlxd-debian-installer.sh
prepare certbot for optional
2022-01-11 19:01:45 +00:00
1 changed files with 22 additions and 20 deletions

View File

@ -57,7 +57,7 @@ then
apt-get -y install $DEP2
elif [ $VERSION = 11 ]
then
apt install -y $DEP3
apt-get install -y $DEP3
fi
echo "------------------------------------------------------------------------------"
@ -121,25 +121,27 @@ sed -i "s/ysf-xlxd/xlxd/g" /etc/apache2/sites-available/$XLXDOMAIN.conf
chown -R www-data:www-data /var/www/xlxd/
chown -R www-data:www-data /xlxd/
a2ensite $XLXDOMAIN
if [ $VERSION = 11 ]
then
snap install core
snap refresh core
snap install --classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot
ufw allow http
ufw allow https
systemctl restart apache2
certbot --apache
else
echo ""
echo "Ahh! Somthing went wrong with the snapd cerbot app, your SSL certificate"
echo "The output above is the only indication as to why it might have failed. "
echo "Run certbot --apache again to restart certbot installation"
echo ""
exit 0
fi
clear
# revert certbot make this an option! for another day
#if [ $VERSION = 11 ]
#then
# snap install core
# snap refresh core
# snap install --classic certbot
# ln -s /snap/bin/certbot /usr/bin/certbot
# ufw allow http
# ufw allow https
# systemctl restart apache2
# certbot --apache
#else
# echo ""
# echo "Ahh! Somthing went wrong with the snapd cerbot app, your SSL certificate"
# echo "The output above is the only indication as to why it might have failed. "
# echo "Run certbot --apache again to restart certbot installation"
# echo ""
# exit 0
#fi
# end of certbot
# clear
echo "Starting XLXD....."
sleep 2
figlet "XLXD Reflector"