chore: run shfmt
This commit is contained in:
@@ -16,24 +16,24 @@ trigger-events-install() {
|
|||||||
# exits gracefully if the path already exists
|
# exits gracefully if the path already exists
|
||||||
mkdir -m 775 -p "$DOKKU_LOGS_DIR"
|
mkdir -m 775 -p "$DOKKU_LOGS_DIR"
|
||||||
case "$DOKKU_DISTRO" in
|
case "$DOKKU_DISTRO" in
|
||||||
arch | debian | raspbian)
|
arch | debian | raspbian)
|
||||||
chgrp dokku "$DOKKU_LOGS_DIR"
|
chgrp dokku "$DOKKU_LOGS_DIR"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
chown syslog:dokku "$DOKKU_LOGS_DIR"
|
chown syslog:dokku "$DOKKU_LOGS_DIR"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ ! -f "$DOKKU_EVENTS_LOGFILE" ]]; then
|
if [[ ! -f "$DOKKU_EVENTS_LOGFILE" ]]; then
|
||||||
touch "$DOKKU_EVENTS_LOGFILE"
|
touch "$DOKKU_EVENTS_LOGFILE"
|
||||||
case "$DOKKU_DISTRO" in
|
case "$DOKKU_DISTRO" in
|
||||||
arch | debian | raspbian)
|
arch | debian | raspbian)
|
||||||
chgrp dokku "$DOKKU_EVENTS_LOGFILE"
|
chgrp dokku "$DOKKU_EVENTS_LOGFILE"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# chown syslog:root might not work on SUSE
|
# chown syslog:root might not work on SUSE
|
||||||
chown syslog:dokku "$DOKKU_EVENTS_LOGFILE"
|
chown syslog:dokku "$DOKKU_EVENTS_LOGFILE"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
chmod 664 "$DOKKU_EVENTS_LOGFILE"
|
chmod 664 "$DOKKU_EVENTS_LOGFILE"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user