mirror of
https://github.com/YunoHost-Apps/webtrees_ynh.git
synced 2024-09-03 18:26:37 +02:00
Testing (#90)
* Update manifest.toml * Auto-update README * Upgrade Yunohost version (#84) * Testing (#83) * Update manifest.toml * Auto-update README --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> * update package version to coordinate with upstream --------- Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org> Co-authored-by: eric_G <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: yunohost-bot <yunohost@yunohost.org> * Auto-update README * Auto-update README * fix * fix * Auto-update README * cleaning * Upgrade to v2.1.20 (#89) * Upgrade to v2.1.20 * Auto-update READMEs * fix * Auto-update READMEs --------- Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> --------- Co-authored-by: yunohost-bot <yunohost@yunohost.org> Co-authored-by: Thomas <51749973+Thovi98@users.noreply.github.com> Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org> Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
This commit is contained in:
parent
968379f207
commit
75b9177560
10 changed files with 20 additions and 43 deletions
|
@ -24,7 +24,7 @@ Webtrees allows you to view and edit your genealogy on your website. It has full
|
||||||
**Note:** Its better to upgrade from the Webtrees admin panel when new version arrives.
|
**Note:** Its better to upgrade from the Webtrees admin panel when new version arrives.
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 2.1.18~ynh2
|
**Shipped version:** 2.1.20~ynh1
|
||||||
|
|
||||||
**Demo:** <https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo>
|
**Demo:** <https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ Webtrees allows you to view and edit your genealogy on your website. It has full
|
||||||
**Note:** Its better to upgrade from the Webtrees admin panel when new version arrives.
|
**Note:** Its better to upgrade from the Webtrees admin panel when new version arrives.
|
||||||
|
|
||||||
|
|
||||||
**Versión actual:** 2.1.18~ynh2
|
**Versión actual:** 2.1.20~ynh1
|
||||||
|
|
||||||
**Demo:** <https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo>
|
**Demo:** <https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ Webtrees allows you to view and edit your genealogy on your website. It has full
|
||||||
**Note:** Its better to upgrade from the Webtrees admin panel when new version arrives.
|
**Note:** Its better to upgrade from the Webtrees admin panel when new version arrives.
|
||||||
|
|
||||||
|
|
||||||
**Paketatutako bertsioa:** 2.1.18~ynh2
|
**Paketatutako bertsioa:** 2.1.20~ynh1
|
||||||
|
|
||||||
**Demoa:** <https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo>
|
**Demoa:** <https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo>
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ Webtrees vous permet de visualiser et de modifier votre généalogie sur votre s
|
||||||
|
|
||||||
**Remarque :** Il est préférable de mettre à niveau à partir du panneau d'administration Webtrees lorsqu'une nouvelle version arrive.
|
**Remarque :** Il est préférable de mettre à niveau à partir du panneau d'administration Webtrees lorsqu'une nouvelle version arrive.
|
||||||
|
|
||||||
**Version incluse :** 2.1.18~ynh2
|
**Version incluse :** 2.1.20~ynh1
|
||||||
|
|
||||||
**Démo :** <https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo>
|
**Démo :** <https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ Webtrees allows you to view and edit your genealogy on your website. It has full
|
||||||
**Note:** Its better to upgrade from the Webtrees admin panel when new version arrives.
|
**Note:** Its better to upgrade from the Webtrees admin panel when new version arrives.
|
||||||
|
|
||||||
|
|
||||||
**Versión proporcionada:** 2.1.18~ynh2
|
**Versión proporcionada:** 2.1.20~ynh1
|
||||||
|
|
||||||
**Demo:** <https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo>
|
**Demo:** <https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ Webtrees allows you to view and edit your genealogy on your website. It has full
|
||||||
**Note:** Its better to upgrade from the Webtrees admin panel when new version arrives.
|
**Note:** Its better to upgrade from the Webtrees admin panel when new version arrives.
|
||||||
|
|
||||||
|
|
||||||
**分发版本:** 2.1.18~ynh2
|
**分发版本:** 2.1.20~ynh1
|
||||||
|
|
||||||
**演示:** <https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo>
|
**演示:** <https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "Webtrees"
|
||||||
description.en = "Web-based genealogy application"
|
description.en = "Web-based genealogy application"
|
||||||
description.fr = "Logiciel libre de généalogie en ligne"
|
description.fr = "Logiciel libre de généalogie en ligne"
|
||||||
|
|
||||||
version = "2.1.18~ynh2"
|
version = "2.1.20~ynh1"
|
||||||
|
|
||||||
maintainers = []
|
maintainers = []
|
||||||
|
|
||||||
|
@ -60,8 +60,8 @@ ram.runtime = "50M"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
url = "https://github.com/fisharebest/webtrees/releases/download/2.1.18/webtrees-2.1.18.zip"
|
url = "https://github.com/fisharebest/webtrees/releases/download/2.1.20/webtrees-2.1.20.zip"
|
||||||
sha256 = "33808c8c39df9ff6120ddf55741638bb0287c6617527157abe8786aaa7c30ea2"
|
sha256 = "0e2f9ccf601e5d4579ef90d727b1630620bc22b9ef66c4aacbaf7329b3c7b49d"
|
||||||
autoupdate.strategy = "latest_github_tag"
|
autoupdate.strategy = "latest_github_tag"
|
||||||
autoupdate.asset = "*.zip"
|
autoupdate.asset = "*.zip"
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ ram.runtime = "50M"
|
||||||
main.url = "/"
|
main.url = "/"
|
||||||
|
|
||||||
[resources.apt]
|
[resources.apt]
|
||||||
packages = "mariadb-server, php8.2-mbstring, php8.2-mysql, php8.2-zip, php8.2-gd, php8.2-xml, php8.2-curl, php8.2-intl, mailutils"
|
packages = "mariadb-server, php8.3-mbstring, php8.3-mysql, php8.3-zip, php8.3-gd, php8.3-xml, php8.3-curl, php8.3-intl, mailutils"
|
||||||
|
|
||||||
[resources.database]
|
[resources.database]
|
||||||
type = "mysql"
|
type = "mysql"
|
||||||
|
|
|
@ -21,15 +21,11 @@ ynh_print_info --message="Declaring files to be backed up..."
|
||||||
ynh_backup --src_path="$install_dir"
|
ynh_backup --src_path="$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP THE NGINX CONFIGURATION
|
# SYSTEM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
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"
|
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -19,6 +19,13 @@ ynh_restore_file --origin_path="$install_dir"
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RESTORE THE MYSQL DATABASE
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Restoring the MySQL database..." --weight=1
|
||||||
|
|
||||||
|
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE PHP-FPM CONFIGURATION
|
# RESTORE THE PHP-FPM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -28,13 +35,6 @@ ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# RESTORE THE MYSQL DATABASE
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Restoring the MySQL database..." --weight=1
|
|
||||||
|
|
||||||
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -9,12 +9,6 @@
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# CHECK VERSION
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
upgrade_type=$(ynh_check_app_version_changed)
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK THE PATH
|
# CHECK THE PATH
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -22,21 +16,8 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading source files..."
|
ynh_script_progression --message="Upgrading source files..."
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
then
|
ynh_setup_source --dest_dir=$install_dir --keep="data modules_v4"
|
||||||
ynh_script_progression --message="Upgrading source files..."
|
|
||||||
# Move old app dir
|
|
||||||
#mv ${install_dir} ${install_dir}.old
|
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
|
||||||
ynh_setup_source --dest_dir=$install_dir --keep="data modules_v4"
|
|
||||||
|
|
||||||
# restore data
|
|
||||||
#cp -a ${install_dir}.old/data ${install_dir}
|
|
||||||
|
|
||||||
# delete temp directory
|
|
||||||
#ynh_secure_remove --file=${install_dir}.old
|
|
||||||
fi
|
|
||||||
|
|
||||||
chmod -R 700 $install_dir/data
|
chmod -R 700 $install_dir/data
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
|
|
Loading…
Reference in a new issue