Commit 26f7fb4e authored by Natanael Copa's avatar Natanael Copa

setup-acf: install packages before creating acf password

the acfpasswd utility needs to be installed first
parent 4b22b926
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment