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

Small fixes

This commit is contained in:
ericgaspar 2021-02-16 23:38:26 +01:00
parent eb2f636c25
commit 2644509b96
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 12 additions and 5 deletions

View file

@ -7,7 +7,7 @@
"fr": "Méta-moteur de recherche respectueux de la vie privée et bidouillable",
"de": "Meta-Suchmaschine, die den Privatsphäre wahrt und 'hackable' ist."
},
"version": "0.18.0~ynh2",
"version": "0.18.0~ynh3",
"url": "https://searx.github.io/searx/",
"license": "AGPL-3.0-or-later",
"maintainer": {

View file

@ -54,7 +54,7 @@ ynh_app_setting_set --app=$app --key=is_public --value=$is_public
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_script_progression --message="Installing dependencies..." --weight=35
ynh_script_progression --message="Installing dependencies..." --weight=2
ynh_install_app_dependencies $pkg_dependencies
@ -117,7 +117,7 @@ ynh_store_file_checksum --file="$final_path/searx/settings.yml"
# SET PERMISSIONS ON SEARX DIRECTORY
#=================================================
chown -R $app: "$final_path"
chown -R $app: $final_path
#=================================================
# CONFIGURE UWSGI FOR SEARX
@ -139,12 +139,12 @@ ynh_systemd_action --service_name=uwsgi-app@$app.service --action=start --line_m
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=2
ynh_script_progression --message="Configuring permissions..." --weight=2
# Make app public if necessary or protect it
if [ $is_public -eq 1 ]
then
ynh_permission_update --permission "main" --add "visitors"
ynh_permission_update --permission="main" --add="visitors"
fi
#=================================================

View file

@ -47,6 +47,13 @@ if [ -z "$final_path" ]; then
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
fi
# Cleaning legacy permissions
if ynh_legacy_permissions_exists; then
ynh_legacy_permissions_delete_all
ynh_app_setting_delete --app=$app --key=is_public
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================