mirror of
https://github.com/ShaYmez/xlxd-debian-installer.git
synced 2024-11-21 19:02:34 -05:00
Update xlxd-debian-installer.sh
Add main.h configurable on all version plus some other shizzle
This commit is contained in:
parent
27fe8fbe8d
commit
a1bae08a5d
@ -24,7 +24,7 @@ WEBDIR=/var/www/xlxd
|
|||||||
XLXINSTDIR=/root/reflector-install-files/xlxd
|
XLXINSTDIR=/root/reflector-install-files/xlxd
|
||||||
DEP="wget git build-essential g++ apache2 php libapache2-mod-php php7.0-mbstring"
|
DEP="wget git build-essential g++ apache2 php libapache2-mod-php php7.0-mbstring"
|
||||||
DEP2="wget git build-essential g++ apache2 php libapache2-mod-php php7.3-mbstring"
|
DEP2="wget git build-essential g++ apache2 php libapache2-mod-php php7.3-mbstring"
|
||||||
DEP3="wget git build-essential g++ apache2 php libapache2-mod-php php-curl php-json php-cgi snapd"
|
DEP3="wget git build-essential g++ apache2 php libapache2-mod-php php-curl php-json php-cgi snapd figlet"
|
||||||
VERSION=$(sed 's/\..*//' /etc/debian_version)
|
VERSION=$(sed 's/\..*//' /etc/debian_version)
|
||||||
clear
|
clear
|
||||||
echo ""
|
echo ""
|
||||||
@ -67,17 +67,18 @@ then
|
|||||||
echo "It looks like you have already compiled XLXD. If you want to install/complile xlxd again, delete the directory '/root/reflector-install-files/xlxd' and run this script again. "
|
echo "It looks like you have already compiled XLXD. If you want to install/complile xlxd again, delete the directory '/root/reflector-install-files/xlxd' and run this script again. "
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
echo "Downloading and compiling xlxd... "
|
echo "Downloading and compiling LX4JL XLXD... "
|
||||||
echo "------------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------------"
|
||||||
cd $XLXINSTDIR
|
cd $XLXINSTDIR
|
||||||
|
figlet "XLXD Installer.
|
||||||
git clone $XLXDREPO
|
git clone $XLXDREPO
|
||||||
cd $XLXINSTDIR/xlxd/src
|
cd $XLXINSTDIR/xlxd/src
|
||||||
make clean
|
make clean
|
||||||
if [ $VERSION = 11 ]
|
sleep 5
|
||||||
then
|
echo "------------------------------------------------------------------------------"
|
||||||
|
echo "Edit your configuration"
|
||||||
|
sleep 5
|
||||||
nano main.h
|
nano main.h
|
||||||
else
|
|
||||||
exit 0
|
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
fi
|
fi
|
||||||
@ -138,6 +139,10 @@ else
|
|||||||
echo ""
|
echo ""
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
clear
|
||||||
|
echo "Starting XLXD.....
|
||||||
|
sleep 2
|
||||||
|
figlet "XLXD Reflector
|
||||||
service xlxd start
|
service xlxd start
|
||||||
systemctl restart apache2
|
systemctl restart apache2
|
||||||
echo "------------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------------"
|
||||||
|
Loading…
Reference in New Issue
Block a user