GIT_REPO, ORGANIZATION default values

This commit is contained in:
2023-06-16 07:20:17 +00:00
parent 04bd4f5a28
commit 59de7a80c2

View File

@@ -4,8 +4,18 @@ if [ "$SERVICE_DIR" == "" ]; then
SERVICE_DIR="/etc/user/config/services";
fi;
GIT_REPO=$GIT_REPO
if [ "$GIT_REPO" == "" ]; then
GIT_REPO=git.format.hu
fi
ORGANIZATION=$ORGANIZATION
if [ "$ORGANIZATION" == "" ]; then
ORGANIZATION=format
fi
if [[ "$NEXTCLOUD" == "yes" ]]; then
echo "Nextcloud install has started";
echo "Nextcloud install has started from ssh://$GIT_REPO/$ORGANIZATION/nextcloud.git";
git clone ssh://$GIT_REPO/$ORGANIZATION/nextcloud.git /tmp/nextcloud
sed -i "s/DOMAIN_NAME/$NEXTCLOUD_DOMAIN/g" /tmp/nextcloud/nextcloud-secret.json
@@ -22,7 +32,7 @@ if [[ "$NEXTCLOUD" == "yes" ]]; then
fi;
if [[ "$BITWARDEN" == "yes" ]]; then
echo "Bitwarden install has started";
echo "Bitwarden install has started from ssh://$GIT_REPO/$ORGANIZATION/bitwarden.git";
git clone ssh://$GIT_REPO/$ORGANIZATION/bitwarden.git /tmp/bitwarden