j-c-m / ubnt-letsencrypt

Let's Encrypt setup instructions for Ubiquiti EdgeRouter
472 stars 68 forks source link

Install commands require sudo #21

Closed RobBiddle closed 6 years ago

RobBiddle commented 6 years ago

The curl & chmod commands for installation require sudo (at least on EdgeOS v1.10.3)

j-c-m commented 6 years ago

What are your permissions on /config, I am only needing sudo if I also ran the mkdir as root (sudo).

$ ls -dl /config
drwxrwsr-x   16 root     vyattacf      1264 Jun  7 20:42 /config
j-c-m commented 6 years ago

Also what about /config/scripts

$ ls -ld /config/scripts
drwxrwsr-x    3 root     vyattacf       384 Jan 10  2017 /config/scripts
RobBiddle commented 6 years ago
$ ls -dl /config
drwxr-xr-x   15 root     vyattacf      4096 Jun  7 23:17 /config
$ ls -ld /config/scripts
drwxrwsr-x    3 root     vyattacf      4096 Jun  7 13:34 /config/scripts
j-c-m commented 6 years ago

Thanks.

I verified in the squashfs of the firmware both /config & /config/scripts start life as 'drwxrwsr-x' .. but agree running the install commands under sudo is probably a good thing to handle cases like yours where they have diverged for some reason.