removed creating services

creation of services for podman in this place has been removed
This commit is contained in:
lunardunno 2024-07-20 09:01:07 +04:00 committed by GitHub
parent 88b166443f
commit c34c7f21b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,8 +14,5 @@ if [ -n "$(sudo docker --version 2>/dev/null | grep podman)" ]; then sudo sh -c
' \"alpine\" = \"docker.io/library/alpine\"' \ ' \"alpine\" = \"docker.io/library/alpine\"' \
' # Amnezia finish' \ ' # Amnezia finish' \
>> /var/cache/containers/short-name-aliases.conf";\ >> /var/cache/containers/short-name-aliases.conf";\
sudo docker build --no-cache --pull -t $CONTAINER_NAME $DOCKERFILE_FOLDER && sudo sh -c '\ fi;\
podman generate systemd --name $CONTAINER_NAME 2>/dev/null > $DOCKERFILE_FOLDER/container-$CONTAINER_NAME.service && \ sudo docker build --no-cache --pull -t $CONTAINER_NAME $DOCKERFILE_FOLDER
systemctl enable $DOCKERFILE_FOLDER/container-$CONTAINER_NAME.service';\
else sudo docker build --no-cache --pull -t $CONTAINER_NAME $DOCKERFILE_FOLDER;\
fi