1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dotclear2_ynh.git synced 2024-09-03 18:26:29 +02:00

Updating database

This commit is contained in:
Kay0u 2020-04-18 00:56:33 +02:00
parent 5a4bf8a734
commit 6456cc339c
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156

View file

@ -180,7 +180,6 @@ ynh_store_file_checksum --file=$php_config
chown -R root: $final_path chown -R root: $final_path
chown -R $app $final_path/{public,cache,themes,plugins} chown -R $app $final_path/{public,cache,themes,plugins}
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================
@ -191,6 +190,18 @@ if ! ynh_permission_exists --permission "admin"; then
ynh_permission_create --permission "admin" --url "/admin" --allowed $admin ynh_permission_create --permission "admin" --url "/admin" --allowed $admin
fi 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 # RELOAD NGINX
#================================================= #=================================================