mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
commit
110ef7e1d6
2 changed files with 9 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
||||||
"en": "Blog publishing application",
|
"en": "Blog publishing application",
|
||||||
"fr": "Moteur de blog"
|
"fr": "Moteur de blog"
|
||||||
},
|
},
|
||||||
"version": "2.16~ynh1",
|
"version": "2.16~ynh2",
|
||||||
"license": "GPL-2.0-or-later",
|
"license": "GPL-2.0-or-later",
|
||||||
"url": "https://dotclear.org/",
|
"url": "https://dotclear.org/",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -35,11 +35,6 @@ protected_uris=$(ynh_app_setting_get $app protected_uris)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info "Ensuring downward compatibility..."
|
ynh_print_info "Ensuring downward compatibility..."
|
||||||
|
|
||||||
# Delete is_public if it exists
|
|
||||||
if [ ! -z $is_public ]; then
|
|
||||||
ynh_app_setting_delete --app=$app --key=is_public
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If db_name doesn't exist, create it
|
# If db_name doesn't exist, create it
|
||||||
if [ -z $db_name ]; then
|
if [ -z $db_name ]; then
|
||||||
db_name=$(ynh_sanitize_dbid $app)
|
db_name=$(ynh_sanitize_dbid $app)
|
||||||
|
@ -72,6 +67,14 @@ if [ ! -z $password ]; then
|
||||||
ynh_app_setting_delete $app password
|
ynh_app_setting_delete $app password
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Delete is_public if it exists
|
||||||
|
if [ ! -z $is_public ]; then
|
||||||
|
if [ "$is_public" = "1" ]; then
|
||||||
|
ynh_permission_update --permission "main" --add "visitors"
|
||||||
|
fi
|
||||||
|
ynh_app_setting_delete --app=$app --key=is_public
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue