summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Rößler2015-02-26 14:52:55 +0100
committerChristian Rößler2015-02-26 14:52:55 +0100
commit916f05d2ea398b746eceb4804f942a5faeea8e5b (patch)
tree2c11606d03e7aaebcfc54bc2865f5f865af9243a
parent[SSPS] Some aesthetics in help message (diff)
downloadsetup-scripts-916f05d2ea398b746eceb4804f942a5faeea8e5b.tar.gz
setup-scripts-916f05d2ea398b746eceb4804f942a5faeea8e5b.tar.xz
setup-scripts-916f05d2ea398b746eceb4804f942a5faeea8e5b.zip
[SSPS] version string dropped to config
-rw-r--r--satellit_installer/includes/10-query_user.inc6
-rwxr-xr-xsatellit_installer/satellit_installer2
2 files changed, 8 insertions, 0 deletions
diff --git a/satellit_installer/includes/10-query_user.inc b/satellit_installer/includes/10-query_user.inc
index 8b214ff..7e07895 100644
--- a/satellit_installer/includes/10-query_user.inc
+++ b/satellit_installer/includes/10-query_user.inc
@@ -79,3 +79,9 @@ set_passwords() {
echo "MYSQL_BWLEHRPOOL_PASS=$MYSQL_BWLEHRPOOL_PASS" >> "$CONFIGDIR"/config
echo "ok."
}
+
+set_version_string() {
+ echo -n "# Setting version string..."
+ echo "VERSION=$VERSION" >> "$CONFIGDIR"/config
+ echo "ok."
+}
diff --git a/satellit_installer/satellit_installer b/satellit_installer/satellit_installer
index bed8fa9..8cf3d9d 100755
--- a/satellit_installer/satellit_installer
+++ b/satellit_installer/satellit_installer
@@ -87,6 +87,8 @@ prerequisites # config directory, locales
set_passwords # only to be used within certain circumstances -
# see includes/query_user.
+set_version_string # Writing version string for rc.local-script
+
preset_mysql_root # so mysqld keeps quiet when installing
install_packages NOREC "$PACKAGELIST_SERVER" # Packages needed for server installable without