Added -q option to a2enconf/a2disconf to suppress their output.

This commit is contained in:
2026-02-20 07:46:18 -05:00
parent 5129d30992
commit ef0599342b

View File

@@ -203,7 +203,7 @@ then
# proceed with upgrade
# take app offline during upgrade
a2disconf $install_loc_in
a2disconf -q $install_loc_in
systemctl reload apache2
datestamp=$(date +%Y-%m-%d_%H:%M:%S)
@@ -407,7 +407,7 @@ echo "$APP_NAME has been $operation."
base_url=$install_loc_in
if [[ "$operation" == "upgraded" ]]
then
a2enconf $base_url
a2enconf -q $base_url
systemctl reload apache2
fi
if [[ "$operation" == "installed" ]]
@@ -425,7 +425,7 @@ then
read enconf
if [[ "$enconf" == "" || "$enconf" == "Y" || "$enconf" == "y" ]]
then
a2enconf $base_url.conf >/dev/null
a2enconf -q $base_url.conf >/dev/null
systemctl reload apache2
echo "You can now point a web browser to $base_url on your web server "
echo "to set up and configure $APP_NAME."