Default Symlink Handling Apache Change
This commit is contained in:
parent
5cd25df190
commit
d23172ab41
2 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue