Default Symlink Handling Apache Change

This commit is contained in:
earnolmartin 2023-10-23 14:42:12 -06:00
parent 5cd25df190
commit d23172ab41
2 changed files with 8 additions and 8 deletions

View file

@ -3482,10 +3482,10 @@ function createSymlinks(){
#Apache2
# Remove /etc/apache2/sites-enabled/default symlink if exists
if [ -L "/etc/apache2/sites-enabled/default" ]; then
rm -f "/etc/apache2/sites-enabled/default"
if [ -e "/etc/apache2/sites-available/default" ]; then
cp "/etc/apache2/sites-available/default" "/etc/apache2/sites-enabled/default"
if [ -L "/etc/apache2/sites-enabled/000-default.conf" ]; then
rm -f "/etc/apache2/sites-enabled/000-default.conf"
if [ -e "/etc/apache2/sites-available/000-default.conf" ]; then
cp "/etc/apache2/sites-available/000-default.conf" "/etc/apache2/sites-enabled/default"
fi
fi
}

View file

@ -3145,10 +3145,10 @@ function createSymlinks(){
#Apache2
# Remove /etc/apache2/sites-enabled/default symlink if exists
if [ -L "/etc/apache2/sites-enabled/default" ]; then
rm -f "/etc/apache2/sites-enabled/default"
if [ -e "/etc/apache2/sites-available/default" ]; then
cp "/etc/apache2/sites-available/default" "/etc/apache2/sites-enabled/default"
if [ -L "/etc/apache2/sites-enabled/000-default.conf" ]; then
rm -f "/etc/apache2/sites-enabled/000-default.conf"
if [ -e "/etc/apache2/sites-available/000-default.conf" ]; then
cp "/etc/apache2/sites-available/000-default.conf" "/etc/apache2/sites-enabled/default"
fi
fi
}