Skip to content

Commit

Permalink
Update vhost.sh to produce symlinked instead of copied sites-enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
vpiskunov authored Mar 16, 2021
1 parent 8b727c1 commit 3f8c331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vhost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ else
exit 0
fi
if [ ! -e "/etc/apache2/sites-enabled/generated-$domainName.conf" ]; then
echo "$vhost" > /etc/apache2/sites-enabled/generated-$domainName.conf
ln -s ../sites-available/generated-$domainName.conf /etc/apache2/sites-enabled/generated-$domainName.conf
else
echo ' ### ERROR: sites-enabled => file exists already!'
exit 0
Expand Down

0 comments on commit 3f8c331

Please sign in to comment.