Skip to content

Commit

Permalink
missing quotes in init
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed May 6, 2022
1 parent 494ae54 commit 1612449
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions base.alpine/files/init-root.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/sbin/dinit /bin/sh

echo "execute \"$@\" as root"
exec $@
echo execute "$@" as root
exec "$@"
6 changes: 3 additions & 3 deletions base.alpine/files/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ if [[ -f "/srv/init.sh" ]]; then
fi
fi

echo "execute \"$@\""
echo execute "$@"
if [[ ${uid} -eq 0 ]]; then
exec su-exec app $@
exec su-exec app "$@"
else
exec $@
exec "$@"
fi

0 comments on commit 1612449

Please sign in to comment.