[Lunar-commits] <moonbase-core> systemd: fix logic
v4hn
me at v4hn.de
Tue Nov 5 07:57:30 CET 2013
commit f608599c2756c31b20da2863a69650c037b75fbf
Author: v4hn <me at v4hn.de>
Date: Mon, 04 Nov 2013 13:31:18 -0800
URL: https://github.com/lunar-linux/moonbase-core/commit/f608599c2756c31b20da2863a69650c037b75fbf
systemd: fix logic
using || breaks the && chain of BUILD
---
system/systemd/BUILD | +9/-3
1 file changed, 9 insertions(+), 3 deletions(-)
--- a/system/systemd/BUILD
+++ b/system/systemd/BUILD
@@ -8,13 +8,19 @@ OPTS+=" --libexecdir=/usr/lib \
add_priv_group systemd-journal &&
# a not existing hostname is set to lunar.
-[ -f /etc/hostname ] || install -m 0644 -o root -g root $SCRIPT_DIRECTORY/files/hostname /etc/hostname &&
+if [[ ! -f /etc/hostname ]]; then
+ install -m 0644 -o root -g root $SCRIPT_DIRECTORY/files/hostname /etc/hostname
+fi &&
# vconsole.conf defaults to us-layout
-[ -f /etc/vconsole.conf ] || install -m 0644 -o root -g root $SCRIPT_DIRECTORY/files/vconsole.conf /etc/vconsole.conf &&
+if [[ ! -f /etc/vconsole.conf ]]; then
+ install -m 0644 -o root -g root $SCRIPT_DIRECTORY/files/vconsole.conf /etc/vconsole.conf
+fi &&
# last but not least the locale settings, defaulting to US
-[ -f /etc/locale.conf ] || install -m 0644 -o root -g root $SCRIPT_DIRECTORY/files/locale.conf /etc/locale.conf &&
+if [[ ! -f /etc/locale.conf ]]; then
+ install -m 0644 -o root -g root $SCRIPT_DIRECTORY/files/locale.conf /etc/locale.conf
+fi &&
# systemd guys wrongly assume that on every linux
# installation is a group called "lock" this isn't
More information about the Lunar-commits
mailing list