1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zwiicms_ynh.git synced 2024-09-03 18:06:04 +02:00

Merge pull request #16 from YunoHost-Apps/testing

Testing
This commit is contained in:
ewilly 2023-04-10 20:49:21 +02:00 committed by GitHub
commit 9a56c406ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 35 additions and 10 deletions

View file

@ -29,7 +29,7 @@ Zwii is a database-less (flat-file) CMS that allows you to easily create and man
- Flexible
**Shipped version:** 12.3.05~ynh1
**Shipped version:** 12.3.05~ynh2
## Screenshots

View file

@ -29,7 +29,7 @@ Zwii is a database-less (flat-file) CMS that allows you to easily create and man
- Flexible
**Version incluse :** 12.3.05~ynh1
**Version incluse :** 12.3.05~ynh2
## Captures décran

19
doc/POST_UPGRADE.md Normal file
View file

@ -0,0 +1,19 @@
## 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)
#### 5. Save
![Save](./upgrade_process_4.png)

6
doc/PRE_UPGRADE.md Normal file
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

BIN
doc/upgrade_process_4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View file

@ -5,7 +5,7 @@ name = "ZwiiCMS"
description.en = "Simple, lightweight, database-free, scalable and responsive CMS"
description.fr = "CMS simple, léger, sans base de données, modulable et responsive"
version = "12.3.05~ynh1"
version = "12.3.05~ynh2"
maintainers = ["ewilly"]
@ -55,13 +55,6 @@ ram.runtime = "50M"
type = "password"
[resources]
[resources.sources]
[resources.sources.main]
url = "https://forge.chapril.org/ZwiiCMS-Team/ZwiiCMS/archive/12.3.04.tar.gz"
sha256 = "2c0d58dbbf1f036a230dd7825c235a0a118975064290f2c8e306714afbd5d4bc"
[resources.system_user]
[resources.install_dir]

View file

@ -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
#=================================================