Action scripts#41
Conversation
| final_path=$(ynh_app_setting_get $app final_path) | ||
|
|
||
| auth_backend=$(ynh_app_setting_get $app auth_backend) | ||
| #is_internal_users=$(ynh_app_setting_get $app is_internal_users) |
There was a problem hiding this comment.
You should probably uncomment is_internal_users, as you check it after.
| if [ -z "$is_internal_users" ]; then | ||
| ynh_app_setting_set $app is_internal_users 0 | ||
| fi | ||
|
|
There was a problem hiding this comment.
A test is needed as well for auth_backend
| #================================================= | ||
|
|
||
| # Get authentication backend and set as lowercase | ||
| #auth_backend=${YNH_ACTION_IS_INTERNAL_USERS,,} |
There was a problem hiding this comment.
This line should be removed I guess.
| # Plugin "authchained" needs to be installed for this script to run | ||
| if [ ! -d $final_path/lib/plugins/authchained ]; then | ||
| ynh_die "Plugin 'authchained' is not installed and must be installed beforehand." 1 | ||
| fi |
There was a problem hiding this comment.
Small "typo", but those 2 previous check should be in "# CHECK IF ARGUMENTS AND REQUIREMENTS ARE CORRECT"
|
|
||
|
|
||
| # Regen ssowat configuration | ||
| yunohost app ssowatconf |
| # RELOAD NGINX | ||
| #================================================= | ||
|
|
||
| systemctl reload nginx |
There was a problem hiding this comment.
Don't think you need that either.
|
Not tested, but looks good. |
|
bump |
Add this setting even if not use by default. Only usefull with "internal_users" script. Harmless and makes the maintenance easier
Add this setting even if not use by default. Only usefull with "internal_users" script. Harmless and makes the maintenance easier
|
Can be reviewed and tested. What has been tested on a VM
|
|
merge conflicts solved |
|
bump |
|
Following the release of YunoHost 3.6, shall I use TOML instead of JSON? |
|
It's supposed to work with json and toml. But, it's clearly easier to read in toml. So would be better for long term support to write directly in toml |
|
!testme |


Problem
Work in progress. Not ready to merge ! Is used to show progress and let the Apps team work is ongoing
action scripts
To test it:
Followed examples
Solution
PR Status
Validation
Minor decision
When the PR is marked as ready to merge, you have to wait for 3 days before really merging it.