mirror of
https://github.com/YunoHost-Apps/zwiicms_ynh.git
synced 2024-09-03 18:06:04 +02:00
Ask for finalizing the upgrade in the app
This commit is contained in:
parent
8a37182f89
commit
d77bc43d9d
6 changed files with 28 additions and 0 deletions
15
doc/POST_UPGRADE.md
Normal file
15
doc/POST_UPGRADE.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
## You need now to finalize the upgrade process of ZwiiCMS directly in the app.
|
||||
|
||||
#### 1. Login with your admin account
|
||||
|
||||
#### 2. Go to setup page
|
||||
|
||||
![Setup menu](./upgrade_process_1.png)
|
||||
|
||||
#### 3. Click on Reinstall
|
||||
|
||||
![Reinstall](./upgrade_process_2.png)
|
||||
|
||||
#### 4. If needed, deactivate the maintenance mode
|
||||
|
||||
![Maintenance mode](./upgrade_process_3.png)
|
6
doc/PRE_UPGRADE.md
Normal file
6
doc/PRE_UPGRADE.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
## Disclaimers / important information
|
||||
By continuing the app will stay in **maintenance mode** until a manual finalization.
|
||||
|
||||
The manual finalization process is easy. You just need to be able to access the webapp and login with your admin account.
|
||||
|
||||
This process will be explain at the end of the upgarde proccess.
|
BIN
doc/upgrade_process_1.png
Normal file
BIN
doc/upgrade_process_1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
BIN
doc/upgrade_process_2.png
Normal file
BIN
doc/upgrade_process_2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
BIN
doc/upgrade_process_3.png
Normal file
BIN
doc/upgrade_process_3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
|
@ -30,6 +30,13 @@ find "$install_dir" -type f -exec chmod 640 {} \;
|
|||
find "$install_dir" -type d -exec chmod 750 {} \;
|
||||
find "$install_dir" -type d -exec chmod +s {} \;
|
||||
|
||||
#=================================================
|
||||
# UPDATE A CONFIG FILE
|
||||
#=================================================
|
||||
|
||||
# Apply maintenance mode
|
||||
sed -i 's/"maintenance":[^,]*/"maintenance":true/g' "$install_dir/site/data/config.json"
|
||||
|
||||
#=================================================
|
||||
# REAPPLY SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue