mirror of
https://gitlab.com/Snogard/kaido.git
synced 2025-08-20 10:50:06 +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/
|
imageName=docker.io/
|
||||||
containerName=
|
containerName=
|
||||||
|
|
||||||
|
envFile="$KAIDO_CONFIG_FOLDER/containers/$podName/$containerName.env"
|
||||||
|
|
||||||
dstBasePath="$KAIDO_CONTAINER_FOLDER/$containerName"
|
dstBasePath="$KAIDO_CONTAINER_FOLDER/$containerName"
|
||||||
|
|
||||||
# envs
|
# envs
|
||||||
@ -14,6 +16,10 @@ if [ -f "$KAIDO_CONFIG_FOLDER/containers/$containerName/envs.sh" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ ! -f "$envFile" ]; then
|
||||||
|
envFile="$KAIDO_EMPTY_ENV_FILE"
|
||||||
|
fi
|
||||||
|
|
||||||
# pre install
|
# pre install
|
||||||
create_folder "$dstBasePath"
|
create_folder "$dstBasePath"
|
||||||
stop_and_remove_container $containerName
|
stop_and_remove_container $containerName
|
||||||
@ -24,6 +30,7 @@ echo "Creating new container"
|
|||||||
podman create \
|
podman create \
|
||||||
--name $containerName \
|
--name $containerName \
|
||||||
-v $dstBasePath:/path/to/folder \
|
-v $dstBasePath:/path/to/folder \
|
||||||
|
--env-file="$envFile" \
|
||||||
$imageName
|
$imageName
|
||||||
|
|
||||||
|
|
@ -46,5 +46,5 @@ podman create \
|
|||||||
$imageName_web
|
$imageName_web
|
||||||
|
|
||||||
# systemd
|
# systemd
|
||||||
create_systemd_services $containerName
|
create_systemd_services $podName
|
||||||
systemctl --user enable --now $containerName
|
systemctl --user enable --now $podName
|
Loading…
x
Reference in New Issue
Block a user