I try building an Bash Script to auto generate Apache VHosts, secure them and enable them. So far so good, the problem is that the script does not execute the full correct line.
This is the line in the Script
a2ensite /etc/apache2/sites-available/$Domain.conf
But it only executes
a2ensite /etc/apache2/sites-available/$Domain
This ends up that apache does not find the config file
The $Domain
does get set like this Domain=$VAR_C
and does work at other commands like I want it to.
Thanks for your help