1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/getsimple_ynh.git synced 2024-09-03 18:36:25 +02:00

Merge pull request #10 from YunoHost-Apps/testing

Automated testing -> master
This commit is contained in:
eric_G 2024-06-24 12:23:54 +02:00 committed by GitHub
commit c768172143
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 15 additions and 51 deletions

View file

@ -27,7 +27,7 @@ GetSimple is an XML based, stand-alone, fully independent and lite Content Manag
- Simple Theme Customization
- Designed For the Small-Site Market
**Shipped version:** 3.3.16~ynh3
**Shipped version:** 3.3.16~ynh4
## Screenshots

View file

@ -27,7 +27,7 @@ GetSimple is an XML based, stand-alone, fully independent and lite Content Manag
- Simple Theme Customization
- Designed For the Small-Site Market
**Versión actual:** 3.3.16~ynh3
**Versión actual:** 3.3.16~ynh4
## Capturas

View file

@ -27,7 +27,7 @@ GetSimple is an XML based, stand-alone, fully independent and lite Content Manag
- Simple Theme Customization
- Designed For the Small-Site Market
**Paketatutako bertsioa:** 3.3.16~ynh3
**Paketatutako bertsioa:** 3.3.16~ynh4
## Pantaila-argazkiak

View file

@ -27,7 +27,7 @@ GetSimple is an XML based, stand-alone, fully independent and lite Content Manag
- Simple Theme Customization
- Designed For the Small-Site Market
**Version incluse:** 3.3.16~ynh3
**Version incluse:** 3.3.16~ynh4
## Captures décran

View file

@ -27,7 +27,7 @@ GetSimple is an XML based, stand-alone, fully independent and lite Content Manag
- Simple Theme Customization
- Designed For the Small-Site Market
**Versión proporcionada:** 3.3.16~ynh3
**Versión proporcionada:** 3.3.16~ynh4
## Capturas de pantalla

View file

@ -27,7 +27,7 @@ GetSimple is an XML based, stand-alone, fully independent and lite Content Manag
- Simple Theme Customization
- Designed For the Small-Site Market
**分发版本:** 3.3.16~ynh3
**分发版本:** 3.3.16~ynh4
## 截图

View file

@ -5,7 +5,7 @@ name = "GetSimple"
description.en = "Flatfile CMS that works fast and efficient"
description.fr = "Flatfile CMS that works fast and efficient"
version = "3.3.16~ynh3"
version = "3.3.16~ynh4"
maintainers = []
@ -16,7 +16,7 @@ admindoc = "http://get-simple.info/wiki/fr:start"
code = "https://github.com/GetSimpleCMS/GetSimpleCMS"
[integration]
yunohost = ">= 11.1.20"
yunohost = ">= 11.2"
architectures = "all"
multi_instance = true
ldap = false

View file

@ -27,10 +27,6 @@ ynh_backup --src_path="$install_dir"
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# BACKUP THE PHP-FPM CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#=================================================

View file

@ -32,10 +32,8 @@ chown -R $app:www-data "$install_dir"
#=================================================
ynh_script_progression --message="Configuring PHP-FPM..." --weight=1
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=low --footprint=low
ynh_add_fpm_config
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
@ -45,7 +43,7 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/temp.gsconfig.php" --destination="$install_dir/gsconfig.php"
ynh_add_config --template="temp.gsconfig.php" --destination="$install_dir/gsconfig.php"
chmod 400 "$install_dir/gsconfig.php"
chown $app:$app "$install_dir/gsconfig.php"
@ -55,9 +53,6 @@ chown $app:$app "$install_dir/gsconfig.php"
#=================================================
ynh_script_progression --message="Setuping application with CURL..."
# Set the app as temporarily public for curl call
ynh_script_progression --message="Configuring SSOwat..."
# Installation with curl
ynh_script_progression --message="Finalizing installation..."
ynh_local_curl "/admin/install.php" "lang=$language" "continue=continue"

View file

@ -14,15 +14,8 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
# Remove the dedicated NGINX config
ynh_remove_nginx_config
#=================================================
# REMOVE PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Removing PHP-FPM configuration..." --weight=1
# Remove the dedicated PHP-FPM config
ynh_remove_fpm_config
#=================================================

View file

@ -27,11 +27,6 @@ ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weig
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================

View file

@ -15,23 +15,13 @@ source /usr/share/yunohost/helpers
timezone="$(cat /etc/timezone)"
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep="gsconfig.php data/ backups/"
fi
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="gsconfig.php data/ backups/"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
@ -42,12 +32,7 @@ chown -R $app:www-data "$install_dir"
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=low --footprint=low
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1
ynh_add_fpm_config
# Create a dedicated NGINX config
ynh_add_nginx_config
@ -59,7 +44,7 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Updating a configuration file..."
ynh_add_config --template="../conf/temp.gsconfig.php" --destination="$install_dir/gsconfig.php"
ynh_add_config --template="temp.gsconfig.php" --destination="$install_dir/gsconfig.php"
chmod 400 "$install_dir/gsconfig.php"
chown $app:$app "$install_dir/gsconfig.php"