add keeweb

This commit is contained in:
2025-07-26 17:20:03 +02:00
parent 194144120f
commit 1a8f4d6613
10 changed files with 147 additions and 0 deletions

View File

@ -0,0 +1,36 @@
#!/bin/bash
function upkeeweb {
if [[ $KEEWEB_ACTIVATE == 1 && $KEEWEB_LOCAL == 1 ]]
then
Title ${KEEWEB_SERVICE_NAME^^}
EchoVert "CONTAINER"
upservice ${KEEWEB_SERVICE_NAME}
chmod -R a+wr ./services/50-keeweb/volume/data
Echo
fi
}
function destroykeeweb {
if [[ $KEEWEB_LOCAL == 1 ]]
then
Title "DESTROY $KEEWEB_SERVICE_NAME"
stop $KEEWEB_SERVICE_NAME 1
docker-compose rm -s -v -f "$KEEWEB_SERVICE_NAME"
if [[ -z $1 ]]; then
Question_ouinon "Souhaitez-vous supprimer le volume associé à $KEEWEB_SERVICE_NAME ?";
response=$?
fi
if [[ "$response" == 0 || ! -z $1 ]]
then
EchoRouge "Delete Volume = $KEEWEB_SERVICE_NAME"
rm -rf services/50-keeweb/volume/data
fi
echo ""
fi
}