summaryrefslogtreecommitdiff
blob: bbb92e1fad749f4f29a6af33ee13ee51399a655a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From 2ca0380d068efa0b7be167969ff871f01a354da5 Mon Sep 17 00:00:00 2001
From: Alexys Jacob <ultrabug@gentoo.org>
Date: Wed, 17 May 2017 18:03:53 +0200
Subject: [PATCH 1/9] add gentoo_variant detection and SYSCONFIG setup

Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>
---
 dist/common/scripts/scylla_lib.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dist/common/scripts/scylla_lib.sh b/dist/common/scripts/scylla_lib.sh
index 8dc47bdd..fa71daaf 100644
--- a/dist/common/scripts/scylla_lib.sh
+++ b/dist/common/scripts/scylla_lib.sh
@@ -9,6 +9,10 @@ is_redhat_variant() {
     [ -f /etc/redhat-release ]
 }
 
+is_gentoo_variant() {
+    [ -f /etc/gentoo-release ]
+}
+
 is_systemd() {
     grep -q '^systemd$' /proc/1/comm
 }
@@ -26,7 +30,7 @@ ec2_is_supported_instance_type() {
 }
 
 . /etc/os-release
-if is_debian_variant; then
+if is_debian_variant || is_gentoo_variant; then
     SYSCONFIG=/etc/default
 else
     SYSCONFIG=/etc/sysconfig
-- 
2.12.2