1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bludit_ynh.git synced 2024-09-03 18:06:13 +02:00

Cleaning up

This commit is contained in:
ericgaspar 2021-03-07 20:55:20 +01:00
parent 22c5093569
commit d671fab235
No known key found for this signature in database
GPG key ID: 574F281483054D44
5 changed files with 11 additions and 6 deletions

View file

@ -27,7 +27,7 @@ Bludit is a web application to build your own website or blog in seconds; it's c
## Documentation
* Official documentation: https://docs.bludit.com/en/
* YunoHost documentation: https://yunohost.org/#/app_bludit
* YunoHost documentation: https://yunohost.org/en/app_bludit
## YunoHost specific features

View file

@ -27,7 +27,7 @@ Bludit est une application Web pour créer votre propre site Web ou blog en quel
## Documentation
* Documentation officielle : https://docs.bludit.com/en/
* Documentation YunoHost : https://yunohost.org/#/app_bludit_fr
* Documentation YunoHost : https://yunohost.org/fr/app_bludit
## Caractéristiques spécifiques YunoHost

View file

@ -14,7 +14,7 @@
"email": ""
},
"requirements": {
"yunohost": ">= 4.0.0"
"yunohost": ">= 4.1.7"
},
"multi_instance": true,
"services": [

View file

@ -44,7 +44,6 @@ ynh_script_progression --message="Storing installation settings..." --weight=1
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=is_public --value=$is_public
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
@ -90,7 +89,7 @@ chown -R $app: $final_path
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=1
ynh_script_progression --message="Configuring permissions..." --weight=1
# Make app public if necessary or protect it
if [ $is_public -eq 1 ]

View file

@ -19,7 +19,6 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_app_setting_get --app=$app --key=path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
is_public=$(ynh_app_setting_get --app=$app --key=is_public)
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
@ -39,6 +38,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
#=================================================