#!/bin/bash function upkomga { if [[ $KOMGA_ACTIVATE == 1 && $KOMGA_LOCAL == 1 ]] then Title ${KOMGA_SERVICE_NAME^^} EchoVert "CONTAINER" upservice ${KOMGA_SERVICE_NAME} chmod -R a+wr ./services/50-komga/volume Echo fi } function destroykomga { if [[ $KOMGA_LOCAL == 1 ]] then Title "DESTROY $KOMGA_SERVICE_NAME" stop $KOMGA_SERVICE_NAME 1 docker-compose rm -s -v -f "$KOMGA_SERVICE_NAME" if [[ -z $1 ]]; then Question_ouinon "Souhaitez-vous supprimer les volumes associés à $KOMGA_SERVICE_NAME ?"; response=$? fi if [[ "$response" == 0 || ! -z $1 ]] then rm -rf services/50-komga/volume fi echo "" fi }