Skip to content

Instantly share code, notes, and snippets.

@os1ma
Created August 15, 2018 01:06
Show Gist options
  • Save os1ma/36677152e797ea8c78f1ee0be6c57c84 to your computer and use it in GitHub Desktop.
Save os1ma/36677152e797ea8c78f1ee0be6c57c84 to your computer and use it in GitHub Desktop.
#!/bin/bash -eu
TARGET_FILE=${1:-.htpasswd}
USER=user
PASSWORD=password
docker run \
--rm \
httpd \
htpasswd -nbs $USER $PASSWORD \
> $TARGET_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment