Only -R chown if we've cloned a repo

This commit is contained in:
TheSpad 2023-02-13 14:24:02 +00:00
parent 2b1a826f07
commit ed27502e2b
No known key found for this signature in database
GPG Key ID: 08F06191F4587860

View File

@ -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"