diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-05-02 13:40:02 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-05-02 13:40:02 +0000 |
commit | 26f7fb4ef3ccbcb7fedbcffd65751bc882073510 (patch) | |
tree | ffc0e5a7dc533e781d3637ef230c49f247a7bca0 /setup-acf.in | |
parent | 4b22b926721293e23fa645c742f5f274a601de9f (diff) | |
download | alpine-conf-26f7fb4ef3ccbcb7fedbcffd65751bc882073510.zip |
setup-acf: install packages before creating acf password
the acfpasswd utility needs to be installed first
Diffstat (limited to 'setup-acf.in')
-rw-r--r-- | setup-acf.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setup-acf.in b/setup-acf.in index 91113c5..1ca8bf2 100644 --- a/setup-acf.in +++ b/setup-acf.in @@ -30,6 +30,9 @@ while [ $# -gt 0 ]; do shift done +# install packages +apk add mini_httpd $pkgs || exit 1 + if [ "$create_passwd" != "no" ]; then mkdir -p /etc/acf if [ -f /etc/acf/passwd ]; then @@ -40,9 +43,6 @@ if [ "$create_passwd" != "no" ]; then acfpasswd -s root fi -# install packages -apk add mini_httpd $pkgs || exit 1 - # setup mini_httpd and start it if [ -d /var/www/localhost/htdocs ]; then mv /var/www/localhost/htdocs /var/www/localhost/htdocs.old |