Commit 3ed9c1d7 authored by Natanael Copa's avatar Natanael Copa

setup-acf: use acfpasswd utility to set password

parent cab2bbfe
......@@ -31,16 +31,13 @@ while [ $# -gt 0 ]; do
done
if [ "$create_passwd" != "no" ]; then
askpassword "root ACF"
mkdir -p /etc/acf
if [ -f /etc/acf/passwd ]; then
mv /etc/acf/passwd /etc/acf/passwd.backup
fi
# this will show password on process list but we assume user is alone
# on the box at this stage
_md5passwd=$(echo -n "$_password" | md5sum | cut -d' ' -f1)
echo "root:$_md5passwd:Admin account:ADMIN" >/etc/acf/passwd
echo "root:x:Admin account:ADMIN" >/etc/acf/passwd
chmod 600 /etc/acf/passwd
acfpasswd -s root
fi
# install packages
......
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