#!/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