forked from TrueCloudLab/frostfs-node
Hello, I am a robot. #1
3 changed files with 12 additions and 6 deletions
|
@ -28,3 +28,9 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: gitlint
|
- id: gitlint
|
||||||
stages: [commit-msg]
|
stages: [commit-msg]
|
||||||
|
|
||||||
|
- repo: https://github.com/koalaman/shellcheck-precommit
|
||||||
|
rev: v0.9.0
|
||||||
|
hooks:
|
||||||
|
- id: shellcheck
|
||||||
|
# args: ["--severity=warning"] # Optionally only show errors and warnings
|
||||||
|
|
6
debian/frostfs-ir.postinst
vendored
6
debian/frostfs-ir.postinst
vendored
|
@ -28,9 +28,9 @@ case "$1" in
|
||||||
chmod -f 0640 /etc/frostfs/$USERNAME/config.yml || true
|
chmod -f 0640 /etc/frostfs/$USERNAME/config.yml || true
|
||||||
chmod -f 0640 /etc/frostfs/$USERNAME/control.yml || true
|
chmod -f 0640 /etc/frostfs/$USERNAME/control.yml || true
|
||||||
fi
|
fi
|
||||||
USERDIR=$(getent passwd "frostfs-$USERNAME" | cut -d: -f6)
|
USERDIR="$(getent passwd frostfs-$USERNAME | cut -d: -f6)"
|
||||||
if ! dpkg-statoverride --list frostfs-$USERDIR >/dev/null; then
|
if ! dpkg-statoverride --list frostfs-"$USERDIR" >/dev/null; then
|
||||||
chown -f frostfs-$USERNAME: $USERDIR
|
chown -f frostfs-$USERNAME: "$USERDIR"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
6
debian/frostfs-storage.postinst
vendored
6
debian/frostfs-storage.postinst
vendored
|
@ -28,9 +28,9 @@ case "$1" in
|
||||||
chmod -f 0640 /etc/frostfs/$USERNAME/config.yml || true
|
chmod -f 0640 /etc/frostfs/$USERNAME/config.yml || true
|
||||||
chmod -f 0640 /etc/frostfs/$USERNAME/control.yml || true
|
chmod -f 0640 /etc/frostfs/$USERNAME/control.yml || true
|
||||||
fi
|
fi
|
||||||
USERDIR=$(getent passwd "frostfs-$USERNAME" | cut -d: -f6)
|
USERDIR=$(getent passwd frostfs-$USERNAME | cut -d: -f6)
|
||||||
if ! dpkg-statoverride --list frostfs-$USERDIR >/dev/null; then
|
if ! dpkg-statoverride --list frostfs-"$USERDIR" >/dev/null; then
|
||||||
chown -f frostfs-$USERNAME: $USERDIR
|
chown -f frostfs-$USERNAME: "$USERDIR"
|
||||||
fi
|
fi
|
||||||
USERDIR=/srv/frostfs
|
USERDIR=/srv/frostfs
|
||||||
if ! dpkg-statoverride --list frostfs-$USERDIR >/dev/null; then
|
if ! dpkg-statoverride --list frostfs-$USERDIR >/dev/null; then
|
||||||
|
|
Loading…
Reference in a new issue