Fixed use of incorect var for OS detection
This commit is contained in:
@@ -4,7 +4,7 @@ systemctl stop $apacheService > $OUTPUT 2>&1
|
|||||||
# Apache #
|
# Apache #
|
||||||
##############
|
##############
|
||||||
|
|
||||||
if [ "$shortdist" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then
|
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; then
|
||||||
a2dissite 000-default > $OUTPUT 2>&1
|
a2dissite 000-default > $OUTPUT 2>&1
|
||||||
a2dismod mpm_prefork > $OUTPUT 2>&1
|
a2dismod mpm_prefork > $OUTPUT 2>&1
|
||||||
a2enmod actions fcgid alias proxy_fcgi ssl headers http2 setenvif socache_shmcb > $OUTPUT 2>&1
|
a2enmod actions fcgid alias proxy_fcgi ssl headers http2 setenvif socache_shmcb > $OUTPUT 2>&1
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if [ "$shortdist" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then
|
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; then
|
||||||
# Debian/Ubunbtu apache variables
|
# Debian/Ubunbtu apache variables
|
||||||
apacheConfDir=/etc/apache2
|
apacheConfDir=/etc/apache2
|
||||||
apacheService=apache2
|
apacheService=apache2
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if [ "$shortdist" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then
|
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; then
|
||||||
########################
|
########################
|
||||||
# Debian/Ubunbtu #
|
# Debian/Ubunbtu #
|
||||||
########################
|
########################
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
if [ ! -f "/etc/ICTM/mainvar.list" ] ; then echo 'This system is not yet setup, please run the main installer first' && exit ; fi
|
if [ ! -f "/etc/ICTM/mainvar.list" ] ; then echo 'This system is not yet setup, please run the main installer first' && exit ; fi
|
||||||
|
|
||||||
if [ "$shortdist" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then
|
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; then
|
||||||
# Debian/Ubunbtu Php variables
|
# Debian/Ubunbtu Php variables
|
||||||
phpPoolDir=/etc/php/${phpver}/fpm/pool.d
|
phpPoolDir=/etc/php/${phpver}/fpm/pool.d
|
||||||
phpPkgName=php${phpver}
|
phpPkgName=php${phpver}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
if [ "$shortdist" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then
|
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; then
|
||||||
# Debian/Ubunbtu Php variables
|
# Debian/Ubunbtu Php variables
|
||||||
phpPoolDir=/etc/php/${phpver}/fpm/pool.d
|
phpPoolDir=/etc/php/${phpver}/fpm/pool.d
|
||||||
phpPkgName=php${phpver}
|
phpPkgName=php${phpver}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ if [ -z "${domain}" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$shortdist" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then
|
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; then
|
||||||
debconf-set-selections <<< "postfix postfix/mailname string $domain"
|
debconf-set-selections <<< "postfix postfix/mailname string $domain"
|
||||||
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
|
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
|
||||||
fi
|
fi
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ "$shortdist" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then
|
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; then
|
||||||
# Debian/Ubunbtu redis variables
|
# Debian/Ubunbtu redis variables
|
||||||
redisService=redis-server
|
redisService=redis-server
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user