From 4c079c9a7dbd0cd7b5fd691f1be113a7c71c1aae 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 17:29:26 +0200 Subject: [PATCH] fix --- scripts/install | 1 + scripts/remove | 2 -- scripts/upgrade | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 2b7f8c8..87cfd0b 100755 --- a/scripts/install +++ b/scripts/install @@ -37,6 +37,7 @@ pushd $install_dir ynh_exec_warn_less ynh_exec_as $app CGO_ENABLED=0 $ynh_go build -o $install_dir/ popd +ynh_remove_go chmod +x "$install_dir/vore" #================================================= diff --git a/scripts/remove b/scripts/remove index 0fbc0ba..5db6c8a 100755 --- a/scripts/remove +++ b/scripts/remove @@ -27,8 +27,6 @@ ynh_remove_systemd_config ynh_remove_nginx_config -ynh_remove_go - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 33de990..b9ae98d 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -35,6 +35,8 @@ then ynh_exec_warn_less ynh_exec_as $app CGO_ENABLED=0 $ynh_go build -o $install_dir/ popd + ynh_remove_go + chown -R $app:www-data "$install_dir" chmod +x "$install_dir/vore" fi