diff --git a/scripts/server-install.sh b/scripts/server-install.sh index cbe0b07..a689ffb 100755 --- a/scripts/server-install.sh +++ b/scripts/server-install.sh @@ -3,8 +3,6 @@ set -e : "${WEBROOT:?WEBROOT 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_USER:?GITEA_USER is not set}" : "${GITEA_TOKEN:?GITEA_TOKEN is not set}" @@ -24,7 +22,6 @@ git clone "$USER_REPO" user rm ~/.netrc echo "==> Setting permissions" -chown -R "$WEBROOT_USER":"$WEBROOT_USER" "$WEBROOT" find "$WEBROOT" -type f -exec chmod 664 {} \; find "$WEBROOT" -type d -exec chmod 775 {} \;