mirror of
https://github.com/YunoHost-Apps/gotosocial_ynh.git
synced 2024-09-03 19:16:06 +02:00
this apps will always be public
This commit is contained in:
parent
775f2f91d7
commit
7a8815d44a
1 changed files with 3 additions and 8 deletions
|
@ -32,7 +32,6 @@ password=$YNH_APP_ARG_PASSWORD
|
||||||
registration=$YNH_APP_ARG_REGISTRATION
|
registration=$YNH_APP_ARG_REGISTRATION
|
||||||
registration_approval=$YNH_APP_ARG_REGISTRATION_APPROVAL
|
registration_approval=$YNH_APP_ARG_REGISTRATION_APPROVAL
|
||||||
registration_reason=$YNH_APP_ARG_REGISTRATION_REASON
|
registration_reason=$YNH_APP_ARG_REGISTRATION_REASON
|
||||||
is_public=1
|
|
||||||
|
|
||||||
### If it's a multi-instance app, meaning it can be installed several times independently
|
### If it's a multi-instance app, meaning it can be installed several times independently
|
||||||
### The id of the app as stated in the manifest is available as $YNH_APP_ID
|
### The id of the app as stated in the manifest is available as $YNH_APP_ID
|
||||||
|
@ -362,13 +361,9 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring permissions..." --time --weight=1
|
ynh_script_progression --message="Configuring permissions..." --time --weight=1
|
||||||
|
|
||||||
# Make app public if necessary
|
# Everyone can access the app.
|
||||||
if [ $is_public -eq 1 ]
|
# The "main" permission is automatically created before the install script.
|
||||||
then
|
ynh_permission_update --permission="main" --add="visitors"
|
||||||
# Everyone can access the app.
|
|
||||||
# The "main" permission is automatically created before the install script.
|
|
||||||
ynh_permission_update --permission="main" --add="visitors"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|
Loading…
Add table
Reference in a new issue