Update xlxd-debian-installer.sh

Make configuration main.h accessible before xlx install Debian 11 only
This commit is contained in:
M0VUB 2021-12-05 00:09:31 +00:00 committed by GitHub
parent f6942933e6
commit 27fe8fbe8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 4 deletions

View File

@ -73,6 +73,11 @@ else
git clone $XLXDREPO git clone $XLXDREPO
cd $XLXINSTDIR/xlxd/src cd $XLXINSTDIR/xlxd/src
make clean make clean
if [ $VERSION = 11 ]
then
nano main.h
else
exit 0
make make
make install make install
fi fi
@ -115,24 +120,24 @@ 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 /var/www/xlxd/
chown -R www-data:www-data /xlxd/ chown -R www-data:www-data /xlxd/
a2ensite $XLXDOMAIN a2ensite $XLXDOMAIN
systemctl restart apache2
if [ $VERSION = 11 ] if [ $VERSION = 11 ]
then then
snap install core snap install core
snap refresh core snap refresh core
snap install --classic certbot snap install --classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot ln -s /snap/bin/certbot /usr/bin/certbot
ufw allow http
ufw allow https
systemctl restart apache2
certbot --apache certbot --apache
else else
echo "" echo ""
echo "Ahh! Somthing went wrong with the cerbot application, your SSL certificate" 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 "The output above is the only indication as to why it might have failed. "
echo "Run certbot --apache again to restart certbot installation" echo "Run certbot --apache again to restart certbot installation"
echo "" echo ""
exit 0 exit 0
fi fi
ufw allow http
ufw allow https
service xlxd start service xlxd start
systemctl restart apache2 systemctl restart apache2
echo "------------------------------------------------------------------------------" echo "------------------------------------------------------------------------------"