mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
commit
72590ae377
4 changed files with 10 additions and 9 deletions
|
@ -19,7 +19,4 @@ location __PATH__/ {
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
}
|
}
|
||||||
### End of PHP configuration part
|
### End of PHP configuration part
|
||||||
|
|
||||||
# Include SSOWAT user panel.
|
|
||||||
include conf.d/yunohost_panel.conf.inc;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ app_path=/var/www/$app
|
||||||
. /usr/share/yunohost/helpers
|
. /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
|
||||||
if [[ "freshrss" = "$app" ]];
|
if [[ "APPNAMETOCHANGE" = "$app" ]];
|
||||||
then
|
then
|
||||||
for myuser in $(echo "$new_users" | sed "s/,/ /g")
|
for myuser in $(echo "$new_users" | sed "s/,/ /g")
|
||||||
do
|
do
|
||||||
|
|
|
@ -111,6 +111,10 @@ ynh_add_fpm_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC SETUP
|
# SPECIFIC SETUP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_replace_string "APPNAMETOCHANGE" $app ../hooks/post_app_addaccess
|
||||||
|
ynh_replace_string "APPNAMETOCHANGE" $app ../hooks/post_user_create
|
||||||
|
ynh_replace_string "APPNAMETOCHANGE" $app ../hooks/post_user_delete
|
||||||
|
|
||||||
# SETUPING FRESHRSS
|
# SETUPING FRESHRSS
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info --message="FreshRSS setup script..."
|
ynh_print_info --message="FreshRSS setup script..."
|
||||||
|
@ -157,9 +161,9 @@ chown -R $app: $final_path/extensions/
|
||||||
ynh_print_info --message="Configuring SSOwat..."
|
ynh_print_info --message="Configuring SSOwat..."
|
||||||
|
|
||||||
#skip api directory
|
#skip api directory
|
||||||
ynh_app_setting_set --app="$app" --key=unprotected_uris --value="/api/,/scripts/api.js"
|
ynh_app_setting_set --app="$app" --key=skipped_uris --value="/api/,/scripts/api.js"
|
||||||
ynh_app_setting_delete --app="$app" --key=unprotected_regex
|
ynh_app_setting_delete --app="$app" --key=unprotected_regex
|
||||||
ynh_app_setting_delete --app="$app" --key=skipped_uris
|
ynh_app_setting_delete --app="$app" --key=unprotected_uris
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -180,9 +180,9 @@ $final_path/cli/reconfigure.php --default_user $admin --auth_type http_auth --en
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info --message="Upgrading SSOwat configuration..."
|
ynh_print_info --message="Upgrading SSOwat configuration..."
|
||||||
|
|
||||||
ynh_app_setting_set --app="$app" --key=unprotected_uris --value="/api/,/scripts/api.js"
|
ynh_app_setting_set --app="$app" --key=skipped_uris --value="/api/,/scripts/api.js"
|
||||||
ynh_app_setting_delete --app="$app" --key=unprotected_regex
|
ynh_app_setting_delete --app="$app" --key=unprotected_regex
|
||||||
ynh_app_setting_delete --app="$app" --key=skipped_uris
|
ynh_app_setting_delete --app="$app" --key=unprotected_uris
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|
Loading…
Add table
Reference in a new issue