1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minetest_ynh.git synced 2024-09-03 20:36:00 +02:00

Merge pull request #27 from YunoHost-Apps/fix-is-public-check

No is_public anymore, use ynh_permission_has_user
This commit is contained in:
Éric Gaspar 2021-09-08 22:27:37 +02:00 committed by GitHub
commit fb4755f6c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,7 +168,9 @@ popd
# UPDATE A CONFIG FILE # UPDATE A CONFIG FILE
#================================================= #=================================================
ynh_script_progression --message="Updating a configuration file..." ynh_script_progression --message="Updating a configuration file..."
if [ $is_public -eq 1 ]; then
if ynh_permission_has_user --permission=main --user=visitors
then
announce="true" announce="true"
else else
announce="fase" announce="fase"