Skip to content

Commit e43ee7b

Browse files
authored
Fix htpasswd failing on leading special characters (#156)
If your password begins with a special character this sometimes fails, I tested and the quotes are not included in the final username and hash
1 parent 31e229e commit e43ee7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2021-04-17-traefik-portainer-ssl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ sudo apt install apache2-utils
7474
```
7575

7676
```bash
77-
echo $(htpasswd -nb <USER> <PASSWORD>) | sed -e s/\\$/\\$\\$/g
77+
echo $(htpasswd -nb "<USER>" "<PASSWORD>") | sed -e s/\\$/\\$\\$/g
7878
```
7979

8080
NOTE: Replace `<USER>` with your username and `<PASSWORD>` with your password to be hashed.

0 commit comments

Comments
 (0)