mirror of
https://gitlab.com/Snogard/kaido.git
synced 2025-06-25 02:13:00 +02:00
moved install templates to the proper folder
This commit is contained in:
parent
7422fbb918
commit
2806a8b2ed
@ -5,6 +5,8 @@ source /opt/kaido/src/libs/bash/lib.sh
|
||||
imageName=docker.io/
|
||||
containerName=
|
||||
|
||||
envFile="$KAIDO_CONFIG_FOLDER/containers/$podName/$containerName.env"
|
||||
|
||||
dstBasePath="$KAIDO_CONTAINER_FOLDER/$containerName"
|
||||
|
||||
# envs
|
||||
@ -14,6 +16,10 @@ if [ -f "$KAIDO_CONFIG_FOLDER/containers/$containerName/envs.sh" ]; then
|
||||
fi
|
||||
|
||||
|
||||
if [ ! -f "$envFile" ]; then
|
||||
envFile="$KAIDO_EMPTY_ENV_FILE"
|
||||
fi
|
||||
|
||||
# pre install
|
||||
create_folder "$dstBasePath"
|
||||
stop_and_remove_container $containerName
|
||||
@ -24,6 +30,7 @@ echo "Creating new container"
|
||||
podman create \
|
||||
--name $containerName \
|
||||
-v $dstBasePath:/path/to/folder \
|
||||
--env-file="$envFile" \
|
||||
$imageName
|
||||
|
||||
|
@ -46,5 +46,5 @@ podman create \
|
||||
$imageName_web
|
||||
|
||||
# systemd
|
||||
create_systemd_services $containerName
|
||||
systemctl --user enable --now $containerName
|
||||
create_systemd_services $podName
|
||||
systemctl --user enable --now $podName
|
Loading…
x
Reference in New Issue
Block a user