summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-webadmin
diff options
context:
space:
mode:
authorAnders Darander <anders@chargestorm.se>2014-06-13 15:01:20 +0200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2014-06-18 17:55:55 +0100
commitb67780140ee4cdbb874c99ef83e1ca616f038c42 (patch)
treea1e33f0402972e247ca5234eb7b7217fd9ec1166 /meta-webserver/recipes-webadmin
parentc76b3b9b97fcdc5854c1d27247c4998c59c2fd2b (diff)
downloadmeta-openembedded-b67780140ee4cdbb874c99ef83e1ca616f038c42.tar.gz
webmin: allow override of webmin login and password
Don't hardcode the webmin login and password in the install script. Instead, extract them to variables, to allow us to override them in a bbappend. Signed-off-by: Anders Darander <anders@chargestorm.se>
Diffstat (limited to 'meta-webserver/recipes-webadmin')
-rw-r--r--meta-webserver/recipes-webadmin/webmin/webmin_1.620.bb7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta-webserver/recipes-webadmin/webmin/webmin_1.620.bb b/meta-webserver/recipes-webadmin/webmin/webmin_1.620.bb
index 8822b92fb..a561de2c7 100644
--- a/meta-webserver/recipes-webadmin/webmin/webmin_1.620.bb
+++ b/meta-webserver/recipes-webadmin/webmin/webmin_1.620.bb
@@ -65,6 +65,9 @@ do_configure() {
65 sed -i "s/find_pid_command=.*/find_pid_command=pidof NAME/" config-generic-linux 65 sed -i "s/find_pid_command=.*/find_pid_command=pidof NAME/" config-generic-linux
66} 66}
67 67
68WEBMIN_LOGIN ?= "admin"
69WEBMIN_PASSWORD ?= "password"
70
68do_install() { 71do_install() {
69 install -d ${D}${sysconfdir} 72 install -d ${D}${sysconfdir}
70 install -d ${D}${sysconfdir}/webmin 73 install -d ${D}${sysconfdir}/webmin
@@ -92,8 +95,8 @@ do_install() {
92 export real_os_type="${DISTRO_NAME}" 95 export real_os_type="${DISTRO_NAME}"
93 export real_os_version="${DISTRO_VERSION}" 96 export real_os_version="${DISTRO_VERSION}"
94 export port=10000 97 export port=10000
95 export login=admin 98 export login=${WEBMIN_LOGIN}
96 export password=password 99 export password=${WEBMIN_PASSWORD}
97 export ssl=0 100 export ssl=0
98 export atboot=1 101 export atboot=1
99 export no_pam=1 102 export no_pam=1