diff --git a/scripts/install b/scripts/install index f3c9721..bea86d7 100755 --- a/scripts/install +++ b/scripts/install @@ -76,7 +76,8 @@ ynh_install_app_dependencies $pkg_dependencies tmpdir="$(ynh_smart_mktemp)" pushd "$tmpdir" wget https://golang.org/dl/go$GO_VERSION.linux-$architecture.tar.gz - rm -rf /usr/local/go && tar -C /usr/local -xzf go$GO_VERSION.linux-$architecture.tar.gz + ynh_secure_remove /usr/local/go + tar -C /usr/local -xzf go$GO_VERSION.linux-$architecture.tar.gz popd ynh_secure_remove "$tmpdir" export PATH=$PATH:/usr/local/go/bin diff --git a/scripts/upgrade b/scripts/upgrade index 825bfa0..6938f4c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -158,6 +158,16 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +#================================================= +# SETUP SSOWAT +#================================================= +ynh_script_progression --message="Configuring permissions..." --weight=1 + + +# Only the admin can access the admin panel of the app (if the app has an admin panel) +ynh_permission_update --permission "main" --remove all_users --add $admin + + #================================================= # RELOAD NGINX #=================================================