Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual host creation problem under ubuntu #69

Open
lulu5-c opened this issue Oct 1, 2021 · 3 comments
Open

Virtual host creation problem under ubuntu #69

lulu5-c opened this issue Oct 1, 2021 · 3 comments

Comments

@lulu5-c
Copy link

lulu5-c commented Oct 1, 2021

Good evening to all. Please help me, I have encountered the same error, I have cloned your project, followed your instructions but I encounter this error.
My operating system ubuntu 20.04

houngbemey@houngbemey-HP-ProBook-450-G6:~$ sudo sh /home/houngbemey/virtualhost/virtualhost.sh create smartenterprise.site
/home/houngbemey/virtualhost/virtualhost.sh: 30: [: smartenterprise.site: unexpected operator
/home/houngbemey/virtualhost/virtualhost.sh: 36: [: unexpected operator
/home/houngbemey/virtualhost/virtualhost.sh: 41: [[: not found
/home/houngbemey/virtualhost/virtualhost.sh: 47: [: create: unexpected operator
-e $This domain does not exist.
Please try another one

@RoverWire
Copy link
Owner

Let me check this, probably is a typo error.

@sam2de
Copy link

sam2de commented Nov 1, 2021

Is there any updates on this issue, I'm ruining into the same error

@pr0way
Copy link

pr0way commented Nov 3, 2021

If you running this script via bash everything work fine.

sudo /path/to/virtualhost.sh create example.local

Under Ubuntu (Debian also I guess) if you run something with sh you get dash interpreter (not bash).
In other words /bin/sh is a symlink to /bin/dash which one have own quirks as any other shell.

This is simple #70 fix for this issue ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants