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:
commit
fb4755f6c8
1 changed files with 3 additions and 1 deletions
|
@ -168,7 +168,9 @@ popd
|
|||
# UPDATE A CONFIG 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"
|
||||
else
|
||||
announce="fase"
|
||||
|
|
Loading…
Reference in a new issue