diff --git a/debian/vitastor-mon.postinst b/debian/vitastor-mon.postinst index 69efbcc3..4aee06ca 100644 --- a/debian/vitastor-mon.postinst +++ b/debian/vitastor-mon.postinst @@ -6,4 +6,6 @@ if [ "$1" = "configure" ]; then addgroup --system --quiet vitastor adduser --system --quiet --ingroup vitastor --no-create-home --home /nonexistent vitastor mkdir -p /etc/vitastor + mkdir -p /var/lib/vitastor + chown vitastor:vitastor /var/lib/vitastor fi diff --git a/rpm/vitastor-el7.spec b/rpm/vitastor-el7.spec index a8415422..a383af3a 100644 --- a/rpm/vitastor-el7.spec +++ b/rpm/vitastor-el7.spec @@ -144,6 +144,8 @@ mkdir -p /etc/vitastor 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 +mkdir -p /var/lib/vitastor +chown vitastor:vitastor /var/lib/vitastor %files -n vitastor-client diff --git a/rpm/vitastor-el8.spec b/rpm/vitastor-el8.spec index dc18ce1d..f9c73a8a 100644 --- a/rpm/vitastor-el8.spec +++ b/rpm/vitastor-el8.spec @@ -141,6 +141,8 @@ mkdir -p /etc/vitastor 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 +mkdir -p /var/lib/vitastor +chown vitastor:vitastor /var/lib/vitastor %files -n vitastor-client diff --git a/rpm/vitastor-el9.spec b/rpm/vitastor-el9.spec index 2a8eab1d..6ec264ba 100644 --- a/rpm/vitastor-el9.spec +++ b/rpm/vitastor-el9.spec @@ -134,6 +134,8 @@ mkdir -p /etc/vitastor 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 +mkdir -p /var/lib/vitastor +chown vitastor:vitastor /var/lib/vitastor %files -n vitastor-client