mirror of
https://github.com/YunoHost-Apps/beehive_ynh.git
synced 2024-09-03 18:06:24 +02:00
Used yhn helper for rm & upgrade permission
This commit is contained in:
parent
1923b9eeab
commit
adb949fda3
2 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue