Remove chown from install script
This commit is contained in:
@@ -3,8 +3,6 @@ set -e
|
|||||||
|
|
||||||
: "${WEBROOT:?WEBROOT is not set}"
|
: "${WEBROOT:?WEBROOT is not set}"
|
||||||
: "${USER_REPO:?USER_REPO is not set}"
|
: "${USER_REPO:?USER_REPO is not set}"
|
||||||
|
|
||||||
WEBROOT_USER=$(echo "$WEBROOT" | cut -d'/' -f3)
|
|
||||||
: "${GITEA_HOST:?GITEA_HOST is not set}"
|
: "${GITEA_HOST:?GITEA_HOST is not set}"
|
||||||
: "${GITEA_USER:?GITEA_USER is not set}"
|
: "${GITEA_USER:?GITEA_USER is not set}"
|
||||||
: "${GITEA_TOKEN:?GITEA_TOKEN is not set}"
|
: "${GITEA_TOKEN:?GITEA_TOKEN is not set}"
|
||||||
@@ -24,7 +22,6 @@ git clone "$USER_REPO" user
|
|||||||
rm ~/.netrc
|
rm ~/.netrc
|
||||||
|
|
||||||
echo "==> Setting permissions"
|
echo "==> Setting permissions"
|
||||||
chown -R "$WEBROOT_USER":"$WEBROOT_USER" "$WEBROOT"
|
|
||||||
find "$WEBROOT" -type f -exec chmod 664 {} \;
|
find "$WEBROOT" -type f -exec chmod 664 {} \;
|
||||||
find "$WEBROOT" -type d -exec chmod 775 {} \;
|
find "$WEBROOT" -type d -exec chmod 775 {} \;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user