From f5d08919bee2e4bb83e231d821153d4f44f3fe43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 15 May 2023 18:23:26 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index b9ae98d..7b277e7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,8 +29,10 @@ then ynh_use_go pushd $install_dir - git config --global --add safe.directory $install_dir - git pull https://git.j3s.sh/vore "$install_dir" --quiet + chown -R $app:www-data "$install_dir" + git config --system --add safe.directory $install_dir + + ynh_exec_warn_less git pull https://git.j3s.sh/vore "$install_dir" --quiet ynh_add_config --template="../conf/index.tmpl.html" --destination="$install_dir/files/index.tmpl.html" ynh_exec_warn_less ynh_exec_as $app CGO_ENABLED=0 $ynh_go build -o $install_dir/ popd