summaryrefslogtreecommitdiffstats
path: root/satellit_installer/includes/00-variables.inc
diff options
context:
space:
mode:
authorChristian Rößler2015-06-10 17:09:18 +0200
committerChristian Rößler2015-06-10 17:09:18 +0200
commit4e47c561e6c6ff9f13994180106bebb564d12b8e (patch)
tree33e5f43e76b272bbbeab8f8d69d082662df6b0da /satellit_installer/includes/00-variables.inc
parent[SSPS] Some after-install cleaning functions (diff)
downloadsetup-scripts-4e47c561e6c6ff9f13994180106bebb564d12b8e.tar.gz
setup-scripts-4e47c561e6c6ff9f13994180106bebb564d12b8e.tar.xz
setup-scripts-4e47c561e6c6ff9f13994180106bebb564d12b8e.zip
[SSPS] Added systemd compatibility for systemd (WARNING: Maybe buggy, will be debugged further).
Diffstat (limited to 'satellit_installer/includes/00-variables.inc')
-rw-r--r--satellit_installer/includes/00-variables.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/satellit_installer/includes/00-variables.inc b/satellit_installer/includes/00-variables.inc
index 02e4a84..0bb4636 100644
--- a/satellit_installer/includes/00-variables.inc
+++ b/satellit_installer/includes/00-variables.inc
@@ -9,6 +9,9 @@
export DEBIAN_FRONTEND="noninteractive" # Part of keeping apt quiet
export LANG="en_US.UTF-8"
+# Preparation for systemd-based OS:
+which systemctl >/dev/null; [ $? -eq 0 ] && export SYSTEMD=true # eg. Debian 8
+
### Needed Packages:
# Set list of needed packages (scripting needs) - remember, Debian-specific so far.
PACKAGELIST_SCRIPT="cracklib-runtime wget"