Create /etc/vitastor during package installation

This commit is contained in:
Vitaliy Filippov
2022-09-03 23:31:55 +03:00
parent 2f13f347b0
commit 2a1da88253
4 changed files with 6 additions and 0 deletions
+1
View File
@@ -5,4 +5,5 @@ set -e
if [ "$1" = "configure" ]; then
addgroup --system --quiet vitastor
adduser --system --quiet --ingroup vitastor --no-create-home --home /nonexistent vitastor
mkdir -p /etc/vitastor
fi
+1
View File
@@ -6,4 +6,5 @@ if [ "$1" = "configure" ]; then
addgroup --system --quiet vitastor
adduser --system --quiet --ingroup vitastor --no-create-home --home /nonexistent vitastor
install -o vitastor -g vitastor -d /var/log/vitastor
mkdir -p /etc/vitastor
fi
+2
View File
@@ -128,6 +128,7 @@ cp mon/90-vitastor.rules %buildroot/lib/udev/rules.d
groupadd -r -f vitastor 2>/dev/null ||:
useradd -r -g vitastor -s /sbin/nologin -c "Vitastor daemons" -M -d /nonexistent vitastor 2>/dev/null ||:
install -o vitastor -g vitastor -d /var/log/vitastor
mkdir -p /etc/vitastor
%files -n vitastor-mon
@@ -138,6 +139,7 @@ install -o vitastor -g vitastor -d /var/log/vitastor
%pre -n vitastor-mon
groupadd -r -f vitastor 2>/dev/null ||:
useradd -r -g vitastor -s /sbin/nologin -c "Vitastor daemons" -M -d /nonexistent vitastor 2>/dev/null ||:
mkdir -p /etc/vitastor
%files -n vitastor-client
+2
View File
@@ -125,6 +125,7 @@ cp mon/90-vitastor.rules %buildroot/lib/udev/rules.d
groupadd -r -f vitastor 2>/dev/null ||:
useradd -r -g vitastor -s /sbin/nologin -c "Vitastor daemons" -M -d /nonexistent vitastor 2>/dev/null ||:
install -o vitastor -g vitastor -d /var/log/vitastor
mkdir -p /etc/vitastor
%files -n vitastor-mon
@@ -135,6 +136,7 @@ install -o vitastor -g vitastor -d /var/log/vitastor
%pre -n vitastor-mon
groupadd -r -f vitastor 2>/dev/null ||:
useradd -r -g vitastor -s /sbin/nologin -c "Vitastor daemons" -M -d /nonexistent vitastor 2>/dev/null ||:
mkdir -p /etc/vitastor
%files -n vitastor-client