Updated apache module to use vars
This commit is contained in:
@@ -1 +1,17 @@
|
||||
if [ "$shortdist" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then
|
||||
# Debian/Ubunbtu apache variables
|
||||
apacheConfDir=/etc/apache2
|
||||
apacheService=apche2
|
||||
|
||||
elif [ "$shortdist" = "el8" ]; then
|
||||
# Centos Php variable
|
||||
apacheConfDir=/etc/httpd
|
||||
apacheService=httpd
|
||||
fi
|
||||
|
||||
#Storing vars to config
|
||||
for storeme in apacheService apacheConfDir; do
|
||||
declare -p $storeme | cut -d ' ' -f 3- >> /etc/ICTM/apachevar.list
|
||||
done
|
||||
|
||||
curl --retry 7 --retry-delay 5 -s https://git.ictmaatwerk.com/VPS-scripts/General/raw/branch/Main/Setup-Repo.sh |repo=apache osrel=$shortdist bash > $OUTPUT 2>&1 > $OUTPUT 2>&1
|
||||
Reference in New Issue
Block a user