From ed27502e2b4537e9e42e52abe5fe0f676c3e86ac Mon Sep 17 00:00:00 2001 From: TheSpad Date: Mon, 13 Feb 2023 14:24:02 +0000 Subject: [PATCH] Only -R chown if we've cloned a repo --- root/etc/s6-overlay/s6-rc.d/init-pylon-config/run | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-pylon-config/run b/root/etc/s6-overlay/s6-rc.d/init-pylon-config/run index 9de510c..86ff085 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-pylon-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-pylon-config/run @@ -13,9 +13,13 @@ if [[ ! -e /lock.file ]]; then if [[ ${GITURL+x} ]] && [[ ! "$(/bin/ls -A /code 2>/dev/null)" ]] ; then \ # clone the url the user passed to this directory git clone "${GITURL}" /code + lsiown -R abc:abc \ + /code + else + lsiown abc:abc \ + /code fi - lsiown -R abc:abc \ - /code + else # lock exists not importing project this is a restart echo "Lock exists just starting pylon"