2023-07-08 11:03:39 +02:00
|
|
|
|
#!/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
|
|
|
|
|
#
|
2023-08-17 10:14:21 +02:00
|
|
|
|
if [ ! -d $WORKFLOW_PATH ]; then
|
2023-08-15 22:23:40 +02:00
|
|
|
|
echo "création du dossier nextcloud workflow_nextcloud"
|
|
|
|
|
mkdir -p $WORKFLOW_PATH
|
2023-08-17 10:14:21 +02:00
|
|
|
|
else
|
|
|
|
|
echo "nextcloud: c'est good"
|
2023-08-15 22:23:40 +02:00
|
|
|
|
fi
|
|
|
|
|
|
2023-08-17 10:14:21 +02:00
|
|
|
|
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
|
2023-08-17 10:52:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -d /home/www/tykayn ]; then
|
|
|
|
|
echo "nginx home www"
|
|
|
|
|
mkdir -p /home/www/tykayn
|
|
|
|
|
else
|
|
|
|
|
echo "nginx home www"
|
|
|
|
|
fi
|