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:
parent
5a4bf8a734
commit
6456cc339c
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue