workflow/initialization/partials/check_folder_integrity.sh

20 lines
543 B
Bash
Raw 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 [ ! -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