mirror of
https://gitlab.com/Snogard/kaido.git
synced 2025-08-20 10:50:06 +02:00
updated some scripts
This commit is contained in:
parent
a86baecffb
commit
9417594ca5
@ -1,16 +1,17 @@
|
||||
#!/bin/baash
|
||||
source /opt/kaido/src/libs/bash/lib.sh
|
||||
|
||||
option=$1
|
||||
token=$2
|
||||
userID=$1
|
||||
option=$2
|
||||
token=$3
|
||||
|
||||
# setup
|
||||
imageName=docker.io/gitlab/gitlab-runner:alpine3.18-v16.1.0
|
||||
containerName=gitlab-runner
|
||||
architecture=$(arch)
|
||||
|
||||
srcFolder=/mnt/storage/containers/$containerName/
|
||||
srcSock=/var/run/user/1001/podman/podman.sock
|
||||
srcFolder=$CONTAINERS_FOLDER/$containerName/
|
||||
srcSock=/var/run/user/$userID/podman/podman.sock
|
||||
|
||||
# pre install
|
||||
create_folder $srcFolder
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
source "src/commands/install/install-gitlab-runner.sh"
|
||||
|
||||
# variables
|
||||
root=/opt/kaido
|
||||
@ -28,6 +29,12 @@ if [ ! -d "${workdir}" ]; then
|
||||
fi
|
||||
# ----------------------
|
||||
|
||||
|
||||
if [ -d "$MASTER_CONFIG_FOLDER" ]; then
|
||||
cd "$MASTER_CONFIG_FOLDER"
|
||||
git pull
|
||||
fi
|
||||
|
||||
# read config files
|
||||
installList=$(cat ${updateConfig} | grep -i install-)
|
||||
configureList=$(cat ${updateConfig} | grep -i configure-)
|
||||
|
@ -1,3 +1,3 @@
|
||||
#TODO: make envs configurable
|
||||
CONTAINERS_FOLDER="/mnt/storage/containers"
|
||||
MASTER_CONFIG_FOLDER="/opt/kaido/configuration"
|
||||
MASTER_CONFIG_FOLDER="$HOME/.config/kaido"
|
Loading…
x
Reference in New Issue
Block a user