Skip to content

Commit acc92e1

Browse files
Fix tntnet-ExecStartPre.sh.in
1 parent 6a1e81a commit acc92e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/tntnet-ExecStartPre.sh.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ chown "${WWW_USER}": "${SPOOL_DIR}"
7979
# SW update (files must be owned/readable by WWW_USER)
8080
SWD="/var/lib/fty/sw-update"
8181
if [ -d "${SWD}" ]; then
82-
chown ${WWW_USER}:${WWW_USER} ${SWD}
83-
chown ${WWW_USER}:${WWW_USER} ${SWD}/*
82+
chown ${WWW_USER}:${WWW_USER} ${SWD} || true
83+
chown ${WWW_USER}:${WWW_USER} ${SWD}/* || true
8484
fi
8585

8686
# Note: The webserver systemd unit starts life as a root, and later drops

0 commit comments

Comments
 (0)