diff options
author | Mark Longair <mhl@pobox.com> | 2012-10-02 17:50:20 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2012-10-03 09:57:27 +0100 |
commit | 7f88f5c55adb98d28ff6f5a12732875f0a52cd93 (patch) | |
tree | a96a9aa5bed246994390b31aa6906903121b3316 /bin/pre-install-as-root | |
parent | 423e5a6129d96a608bd3d1f876f069cf2eedc490 (diff) |
Password-protect the admin interface and make an empty password file
Diffstat (limited to 'bin/pre-install-as-root')
-rwxr-xr-x | bin/pre-install-as-root | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/pre-install-as-root b/bin/pre-install-as-root index 7ba759fd2..8d4c9dd26 100755 --- a/bin/pre-install-as-root +++ b/bin/pre-install-as-root @@ -275,6 +275,8 @@ install_nginx install_website_packages "$REPOSITORY" +su -l -c "touch '$DIRECTORY/admin-htpasswd'" "$UNIX_USER" + add_website_to_nginx "$UNIX_USER" "$HOST" "$REPOSITORY" add_postgresql_user "$UNIX_USER" |