Initial commit

This commit is contained in:
Rainer Killinger
2021-12-08 17:26:11 +01:00
commit 3afeb0e936
24 changed files with 668 additions and 0 deletions

18
static/scripts/clone_app.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env sh
# get semantical versioning string linke 2.0.0 (if $1 is v2.0.0) or $1
DEFAULT_VERSION="0.0.0"
APP_VERSION="${APP_VERSION:-$DEFAULT_VERSION}"
if echo -n $1 | grep -Eq 'v[0-9]+\.[0-9]+\.[0-9]+'; then
APP_VERSION=$(echo -n "$1" | cut -c 2-);
else
APP_VERSION=$1;
fi
if [ "$APP_VERSION" = "0.0.0" ]; then
echo "Unsupported app version was set!"
return 1
fi
git clone --depth 1 --branch $APP_VERSION https://gitlab.com/openstapps/app.git app