Lines 109-118
EOF
Link Here
|
109 |
ENABLE_VHOST="yes" |
109 |
ENABLE_VHOST="yes" |
110 |
if [ -f "/etc/apache2/sites-available/$site" ] && \ |
110 |
if [ -f "/etc/apache2/sites-available/$site" ] && \ |
111 |
[ ! -f "/etc/apache2/sites-available/$site.conf" ]; then |
111 |
[ ! -f "/etc/apache2/sites-available/$site.conf" ]; then |
112 |
if ! a2dissite $site > /dev/null 2>&1; then |
112 |
if [ ! -f "/etc/apache2/sites-enabled/$site" ]; then |
113 |
echo "Warning: problem disabling $site in Apache" >&2 |
|
|
114 |
ENABLE_VHOST="no" |
113 |
ENABLE_VHOST="no" |
115 |
fi |
114 |
fi |
|
|
115 |
a2dissite $site > /dev/null 2>&1 || true |
116 |
rm -f "/etc/apache2/sites-enabled/$site" |
116 |
# Rename the vhost definition files |
117 |
# Rename the vhost definition files |
117 |
mv "/etc/apache2/sites-available/$site" \ |
118 |
mv "/etc/apache2/sites-available/$site" \ |
118 |
"/etc/apache2/sites-available/$site.conf" |
119 |
"/etc/apache2/sites-available/$site.conf" |
119 |
- |
|
|