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