summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorNico Dietrich2006-04-04 21:21:45 +0200
committerNico Dietrich2006-04-04 21:21:45 +0200
commitb389b1d21518e0e2b2a8afab05e20ed8075d8142 (patch)
treec7707e0729ec0970ba3941c93bcdc03d00529e52 /installer
parentintroduce vendor_pre&postinit; inst: only create new config_files when differ... (diff)
downloadcore-b389b1d21518e0e2b2a8afab05e20ed8075d8142.tar.gz
core-b389b1d21518e0e2b2a8afab05e20ed8075d8142.tar.xz
core-b389b1d21518e0e2b2a8afab05e20ed8075d8142.zip
introduce distribution dependant root password
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@154 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer')
-rw-r--r--installer/default_files/machine-setup_default2
-rw-r--r--installer/distro-specs/config-suse2
-rw-r--r--installer/distro-specs/config-ubuntu1
-rwxr-xr-xinstaller/ld4-inst6
4 files changed, 7 insertions, 4 deletions
diff --git a/installer/default_files/machine-setup_default b/installer/default_files/machine-setup_default
index 24e754c5..2f75c3ab 100644
--- a/installer/default_files/machine-setup_default
+++ b/installer/default_files/machine-setup_default
@@ -19,7 +19,7 @@
#
#
# password of system administrator (root) as crypt -> 'dxs-root'
-root_pw='$2a$10$MoEYhIPZGCtR62R8UvBl3emNn2qMOuQpLQpfmNnhya4bGLhyF0pbu'
+root_pw=@@@root_pw@@@
## name service configuration defaults
#
diff --git a/installer/distro-specs/config-suse b/installer/distro-specs/config-suse
index 26e43959..d87cc9a9 100644
--- a/installer/distro-specs/config-suse
+++ b/installer/distro-specs/config-suse
@@ -5,3 +5,5 @@ client_conf="/etc/dxs/client.cfg/machine-setup.default"
# this variable choses which atftpd template file to chose
atftpd_conf_name="atftpd_sysconfig"
+
+root_pw='$2a$10$MoEYhIPZGCtR62R8UvBl3emNn2qMOuQpLQpfmNnhya4bGLhyF0pbu'
diff --git a/installer/distro-specs/config-ubuntu b/installer/distro-specs/config-ubuntu
index 7284def8..081ef7f0 100644
--- a/installer/distro-specs/config-ubuntu
+++ b/installer/distro-specs/config-ubuntu
@@ -5,3 +5,4 @@ client_conf="/etc/dxs/client.cfg/machine-setup.default"
# this variable choses which atftpd template file to chose
atftpd_conf_name="atftpd_default"
+root_pw='$1$yhUR.J5f$t4Djzm0SWX1hCmCVoIZ371'
diff --git a/installer/ld4-inst b/installer/ld4-inst
index 01736782..4143fd7a 100755
--- a/installer/ld4-inst
+++ b/installer/ld4-inst
@@ -316,9 +316,9 @@ setup_server () {
[ -d ${dxs_conf}/${dir} ] || mkdir -p ${dxs_conf}/${dir}
done
- # copy the client configuration default file - machine-setup
- cp default_files/machine-setup_default \
- ${client_conf}-${timestamp}
+ # copy the client configuration default file and replace root_pw - machine-setup
+ sed -e "s,@@@root_pw@@@,${root_pw}," \
+ default_files/machine-setup_default > ${client_conf}-${timestamp}
# creating new configuration files in $dxs_conf
# dhcp