From 6456cc339c07bbb30b50d496553d593d54b75dfb Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sat, 18 Apr 2020 00:56:33 +0200 Subject: [PATCH] Updating database --- scripts/upgrade | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index d5d70da..922ed46 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -180,7 +180,6 @@ ynh_store_file_checksum --file=$php_config chown -R root: $final_path chown -R $app $final_path/{public,cache,themes,plugins} - #================================================= # SETUP SSOWAT #================================================= @@ -191,6 +190,18 @@ if ! ynh_permission_exists --permission "admin"; then ynh_permission_create --permission "admin" --url "/admin" --allowed $admin fi +#================================================= +# UPDATING DATABASE +#================================================= + +ynh_permission_update --permission "admin" --add "visitors" + +# Navigate to the admin panel to upgrade the database: https://dotclear.org/documentation/2.0/admin/upgrades +adminUrl="/admin/auth.php" +ynh_local_curl $adminUrl + +ynh_permission_update --permission "admin" --remove "visitors" + #================================================= # RELOAD NGINX #=================================================