workflow/initialization/partials/check_folder_integrity.sh
2024-02-14 16:41:33 +01:00

31 lines
767 B
Bash
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
#
# vérifier que les dossiers nécessaires au workflow existent,
# les créer au besoin,
# alerter sur l'impossibilité de créer en ajoutant une tâche orgmode au dossier de textes
#
if [ "$debug" = true ]; then
echo "# ========== vérifier l'intégrité des dossiers ==========#"
fi
if [ ! -d $WORKFLOW_PATH ]; then
echo "création du dossier nextcloud workflow_nextcloud"
mkdir -p $WORKFLOW_PATH
else
echo "nextcloud: c'est good"
fi
if [ ! -d $stockage_syncable_folder/www/backup ]; then
echo "stockage syncable backup"
mkdir -p $stockage_syncable_folder/www/backup
else
echo "stockage syncable backup: c'est good"
fi
if [ ! -d /home/www/tykayn ]; then
echo "nginx home www"
mkdir -p /home/www/tykayn
else
echo "nginx home www"
fi