From 6d9faf31c4589440d7d19919ee0eaa140db7b591 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Thu, 17 Aug 2023 10:52:26 +0200 Subject: [PATCH] hop --- initialization/partials/ansible.sh | 5 +++-- initialization/partials/check_folder_integrity.sh | 8 ++++++++ workflow_variables.sh | 6 +++--- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/initialization/partials/ansible.sh b/initialization/partials/ansible.sh index 2c19936..07a3ddc 100644 --- a/initialization/partials/ansible.sh +++ b/initialization/partials/ansible.sh @@ -9,14 +9,15 @@ fi ansible-galaxy install coglinev3.veracrypt echo "vérification et installation des paquets requis" -sudo ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/tk_softwares.yml" +#sudo ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/tk_softwares.yml" ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/pip_modules.yml" -sudo ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/snaps.yml" ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/node_packages.yml" ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/cronjob_workflow.yml" +sudo ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/server_tk_softwares.yml" +sudo ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/snaps.yml" sudo ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/cronjob_workflow_root.yml" diff --git a/initialization/partials/check_folder_integrity.sh b/initialization/partials/check_folder_integrity.sh index 26c9bc6..2c22d95 100644 --- a/initialization/partials/check_folder_integrity.sh +++ b/initialization/partials/check_folder_integrity.sh @@ -17,3 +17,11 @@ if [ ! -d $stockage_syncable_folder/www/backup ]; then 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 diff --git a/workflow_variables.sh b/workflow_variables.sh index d6dfebd..9f6c5f9 100644 --- a/workflow_variables.sh +++ b/workflow_variables.sh @@ -12,7 +12,7 @@ export backup_laptop_archive_path="/home/poule/backup/encrypted" export WORKFLOW_PATH=~/Nextcloud/ressources/workflow_nextcloud -export WORKFLOW_PATH_PUBLIC=~/Nextcloud/ressources/workflow_nextcloud/public_workflow/ +export WORKFLOW_PATH_PUBLIC=~/Nextcloud/ressources/workflow_nextcloud/public_workflow export WORKFLOW_PATH_ROOT=/home/$main_user/Nextcloud/ressources/workflow_nextcloud export ALIASES_PATH=$WORKFLOW_PATH/install/.bash_custom_aliases # fichiers orgmode, wiki personnel @@ -26,7 +26,7 @@ export HOME_OF_SCRIPTS=$www_folder/scripts export stockage_syncable_folder=/home/poule/encrypted/stockage-syncable # dossier où stocker les projets de dev -export www_folder=$stockage_syncable_folder/www/development/html/ +export www_folder=$stockage_syncable_folder/www/development/html export node_version_expected=20 @@ -83,4 +83,4 @@ exclude_opts=() export exclude_opts -bash ./variables.sh \ No newline at end of file +bash $WORKFLOW_PATH_PUBLIC/variables.sh \ No newline at end of file