summaryrefslogtreecommitdiffstats
path: root/satellit_installer/satellit_installer
diff options
context:
space:
mode:
authorChristian Rößler2015-11-12 16:09:03 +0100
committerChristian Rößler2015-11-12 16:09:03 +0100
commitc78e1a833ab8517fa672f226cb6766c53a977ae6 (patch)
tree3fbb1de8368464f7007ccf9bc1f4dc6818e2fea0 /satellit_installer/satellit_installer
parent[SSPS] New option '-n' to NOT delete sources. Without given option the source (diff)
downloadsetup-scripts-c78e1a833ab8517fa672f226cb6766c53a977ae6.tar.gz
setup-scripts-c78e1a833ab8517fa672f226cb6766c53a977ae6.tar.xz
setup-scripts-c78e1a833ab8517fa672f226cb6766c53a977ae6.zip
[SSPS] Some stupid bug.
Diffstat (limited to 'satellit_installer/satellit_installer')
-rwxr-xr-xsatellit_installer/satellit_installer39
1 files changed, 16 insertions, 23 deletions
diff --git a/satellit_installer/satellit_installer b/satellit_installer/satellit_installer
index 859c28b..57de18d 100755
--- a/satellit_installer/satellit_installer
+++ b/satellit_installer/satellit_installer
@@ -44,7 +44,7 @@ while [ -n "$1" ]; do
export VERSION="$1"
shift
;;
- "-d" | "--delete")
+ "-n" | "--nodelete")
NODELETE_SOURCE="true"
shift
;;
@@ -57,7 +57,7 @@ done
# Some version string sanity checks:
[ -z "$VERSION" ] && { echo "No version string has been given - exit."; exit 1; }
-[ ${VERSION:0:1} = "-" ] && { echo "Possibly no version string has been given - exit."; exit 1; }
+[ "${VERSION:0:1}" = '-' ] && { echo "Possibly no version string has been given - exit."; exit 1; }
# Set and save some environmental variables:
OLDUMASK=$(umask)
@@ -82,9 +82,9 @@ echo " ok"
####### Main program #######
system_upgrade # No harm done even if not necessary
-
+
install_packages "$PACKAGELIST_SCRIPT" # Packages needed for script
-
+
# Then, let's download the needed helper files to static_files, as there
# is no sense in commencing if one of these files is missing.
get_files_http
@@ -170,30 +170,23 @@ drop_firstrun_script
install_slxlog
install_finalize # Script for cleaning some stuff after installation
+#
+# set_directory_permissions
+#
+# # Remove translation from menu etc.
+# patch_slxadmin
+#
+# tar -z -c -T /dev/null -f /opt/openslx/empty.tgz
+#
+# # Mark vmstore as not mounted
+# touch "/srv/openslx/nfs/.notmounted"
-set_directory_permissions
-
-# Remove translation from menu etc.
-patch_slxadmin
-
-tar -z -c -T /dev/null -f /opt/openslx/empty.tgz
-
-# Mark vmstore as not mounted
-touch "/srv/openslx/nfs/.notmounted"
-
-# Activate 'purge_install' here - but be careful! This is for debugging purposes only!
-# purge_install
-
-# cleaning log files, authorized hosts
+# cleaning log files, authorized hosts, sources
clean_install
end_message
finalize # Cleaning script; finalize script will delete itself.
-# cleaning log files, authorized hosts, sources
-clean_install
-end_message
-
-[ NODELETE_SOURCE = "true" ] && { echo "#"; echo "# Deleting source directory..."; rm -rf "$BASEDIR"; echo "# done." }
+[ "$NODELETE_SOURCE" = "true" ] && { echo "#"; echo "# Deleting source directory..."; rm -rf "$BASEDIR"; echo "# done."; }
exit 0