mirror of
https://github.com/linuxserver/docker-pylon.git
synced 2026-02-11 13:28:20 +08:00
Only -R chown if we've cloned a repo
This commit is contained in:
parent
2b1a826f07
commit
ed27502e2b
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user