From 6e7a3e553dfe8d94dd282a605e9dcf060b13def5 Mon Sep 17 00:00:00 2001 From: dragondaddy Date: Tue, 14 Nov 2023 10:09:22 +0100 Subject: [PATCH] data_dir not recognised in scripts/config! --- scripts/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config b/scripts/config index 60be5e4..b930e1c 100644 --- a/scripts/config +++ b/scripts/config @@ -75,7 +75,7 @@ set__git_branch_mode() { ynh_print_info "Switching to \"release\" branch" (cd "$install_dir" && ynh_exec_as "$app" git checkout release) ynh_print_info "Full update of the website" - bash $data_dir/daily-update.sh >> $data_dir/daily-updates.log 2>&1 + (cd /home/yunohost.app/"$app" && bash daily-update.sh >> daily-updates.log 2>&1) else ynh_die --message="\"release\" branch is behind your local \"dev\" branch, rolling back is not allowed here" exit 1