From 9c6dab6a45f6abe67656946386f0068706b13be7 Mon Sep 17 00:00:00 2001 From: eleonore Date: Mon, 29 Jul 2024 16:04:58 +0000 Subject: [PATCH] Update Specifications.md --- Specifications.md | 68 +++++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/Specifications.md b/Specifications.md index 65dc2b6..7af432a 100644 --- a/Specifications.md +++ b/Specifications.md @@ -26,49 +26,49 @@ or just a call ./deployer deploy/remove all/service_name deploy_service(service) { - - determines if the service is on this server - if it is: - - checks the environment (/data/mounted and new nginx conf exists) - - creates directories (secret, data, http) if necessary - - calls the bash scripts specific to the service if they exist (deploy_as) - - creates user and .env variables if necessary - - calls the deployment functions from the libraries + - determines if the service is on this server + if it is: + - checks the environment (/data/mounted and new nginx conf exists) + - creates directories (secret, data, http) if necessary + - calls the bash scripts specific to the service if they exist (deploy_as) + - creates user and .env variables if necessary + - calls the deployment functions from the libraries } remove_service(service) //should there be some kind of less absolute removal? { - - determines if the service is on this server - if it is: - - calls the removing bash scripts specific to the service if they exist - - calls the removing functions from the libraries - - deletes .env variables - - deletes directories - - deletes user - - removes from .csv //should this get done before by the sysadmin? but how to check that something was here if it has been removed ? + - determines if the service is on this server + if it is: + - calls the removing bash scripts specific to the service if they exist + - calls the removing functions from the libraries + - deletes .env variables + - deletes directories + - deletes user + - removes from .csv //should this get done before by the sysadmin? but how to check that something was here if it has been removed ? } **main.cpp** - reads the instructions If deploy all: - - tests system requirements (/data/mounted) - - prepares Nginx - - prepares Docker - - prepares .env - for each service: - - deploy_service(service) - - cleans -else if deploy one service: - - deploy_service(service) -else if remove all: - for each service: - - remove_service(service) - - stop Docker - - stop wireguard - - stop Nginx - - cleans .env - - cleans -else if remove one service: - - remove_service(service) + - tests system requirements (/data/mounted) + - prepares Nginx + - prepares Docker + - prepares .env + for each service: + - deploy_service(service) + - cleans +else if deploy one service: + - deploy_service(service) +else if remove all: + for each service: + - remove_service(service) + - stop Docker + - stop wireguard + - stop Nginx + - cleans .env + - cleans +else if remove one service: + - remove_service(service) **plugins/static libraries** - nginx