1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webtrees_ynh.git synced 2024-09-03 18:26:37 +02:00
* 2.0.14
This commit is contained in:
Éric Gaspar 2021-03-31 13:13:00 +02:00 committed by GitHub
parent ecf6f80b76
commit d28b5a97fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 16 deletions

View file

@ -14,7 +14,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.
**Shipped version:** 2.0.13
**Shipped version:** 2.0.14
## Screenshots

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/fisharebest/webtrees/releases/download/2.0.13/webtrees-2.0.13.zip
SOURCE_SUM=badff15ca4432d339728282207ebc1bd3d51b8fdf46e23631ce6598d14a3af5a
SOURCE_URL=https://github.com/fisharebest/webtrees/releases/download/2.0.14/webtrees-2.0.14.zip
SOURCE_SUM=1d40b2a33904fc74a47a504e492b9949f2380efe077f409002597682cbbede61
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip
SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "Web-based genealogy application",
"fr": "Logiciel libre de généalogie en ligne"
},
"version":"2.0.13~ynh2",
"version":"2.0.14~ynh1",
"url": "https://www.webtrees.net",
"license": "GPL-3.0-or-later",
"maintainer": {

View file

@ -64,6 +64,7 @@ ynh_install_app_dependencies $pkg_dependencies
ynh_script_progression --message="Creating a MySQL database..."
db_name=$(ynh_sanitize_dbid --db_name=$app)
db_user=$db_name
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
ynh_mysql_setup_db --db_user=$db_name --db_name=$db_name
@ -106,12 +107,10 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
# Adding the details of the database to the config file
ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_name" --target_file="../conf/config.ini.php"
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="../conf/config.ini.php"
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="../conf/config.ini.php"
ynh_add_config --template="../conf/config.ini.php" --destination="$final_path/data/config.ini.php"
# Copy the config file to the final path
cp ../conf/config.ini.php $final_path/data/.
# # Copy the config file to the final path
# cp ../conf/config.ini.php $final_path/data/.
# Load initial SQL into the new database
ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_name" < "../conf/sql/webtrees.sql"
@ -124,13 +123,6 @@ ynh_replace_string --match_string="__PASSWORD__" --replace_string="$admin_pass
ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_name" < "../conf/sql/admin.sql"
#=================================================
# STORE THE CONFIG FILE CHECKSUM
#=================================================
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="$final_path/data/config.ini.php"
#=================================================
# GENERIC FINALIZATION
#=================================================