summaryrefslogtreecommitdiffstats
path: root/main/alpine-conf/0001-setup-acf-use-acfpasswd-utility-to-set-password.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-12 16:09:19 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-12 16:09:19 +0000
commit875f276f29721f6a373b3601fe9835fe440724ec (patch)
tree416886475a1b3b8ecfe35c22f433629f6fa3b723 /main/alpine-conf/0001-setup-acf-use-acfpasswd-utility-to-set-password.patch
parent216e78928e6939028b5df5fe734b259f57389db3 (diff)
downloadaports-875f276f29721f6a373b3601fe9835fe440724ec.tar.bz2
aports-875f276f29721f6a373b3601fe9835fe440724ec.tar.xz
main/alpine-conf: use acfpasswd tool in setup-acf
Diffstat (limited to 'main/alpine-conf/0001-setup-acf-use-acfpasswd-utility-to-set-password.patch')
-rw-r--r--main/alpine-conf/0001-setup-acf-use-acfpasswd-utility-to-set-password.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/alpine-conf/0001-setup-acf-use-acfpasswd-utility-to-set-password.patch b/main/alpine-conf/0001-setup-acf-use-acfpasswd-utility-to-set-password.patch
new file mode 100644
index 000000000..9f0aec603
--- /dev/null
+++ b/main/alpine-conf/0001-setup-acf-use-acfpasswd-utility-to-set-password.patch
@@ -0,0 +1,35 @@
+From 3ed9c1d7846d62d6a83b5f9d9f93cbfe2c515ef7 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Thu, 12 Jan 2012 11:55:21 +0000
+Subject: [PATCH] setup-acf: use acfpasswd utility to set password
+
+---
+ setup-acf.in | 7 ++-----
+ 1 files changed, 2 insertions(+), 5 deletions(-)
+
+diff --git a/setup-acf.in b/setup-acf.in
+index 487db00..9e1489f 100644
+--- a/setup-acf.in
++++ b/setup-acf.in
+@@ -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
+--
+1.7.8.3
+