moved install templates to the proper folder

This commit is contained in:
Snogard 2025-03-05 12:41:22 +01:00
parent 7422fbb918
commit 2806a8b2ed
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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