virtualhost icon indicating copy to clipboard operation
virtualhost copied to clipboard

Virtual host creation problem under ubuntu

Open lulu5-c opened this issue 4 years ago • 3 comments

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

lulu5-c avatar Oct 01 '21 15:10 lulu5-c

Let me check this, probably is a typo error.

RoverWire avatar Oct 19 '21 02:10 RoverWire

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

sam2de avatar Nov 01 '21 23:11 sam2de

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 ;)

pr0way avatar Nov 03 '21 13:11 pr0way