1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ttrss_ynh.git synced 2024-10-01 13:34:46 +02:00
* Fix shasum
This commit is contained in:
Éric Gaspar 2021-04-19 15:56:38 +02:00 committed by GitHub
parent 7e81de02ab
commit 5110a2dfad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 28 deletions

View file

@ -10,7 +10,6 @@
setup_private=0 setup_private=0
setup_public=0 setup_public=0
upgrade=1 upgrade=1
upgrade=1 from_commit=e27175c2dde0ebbd483b212dc76c5b27877e4ed2
backup_restore=1 backup_restore=1
multi_instance=1 multi_instance=1
change_url=1 change_url=1
@ -18,6 +17,6 @@
Email= Email=
Notification=none Notification=none
;;; Upgrade options ;;; Upgrade options
; commit=e27175c2dde0ebbd483b212dc76c5b27877e4ed2 ; commit=
name=Merge pull request #79 from ericgaspar/update-to-upstream name=
manifest_arg=domain=DOMAIN&path=PATH manifest_arg=domain=DOMAIN&path=PATH

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://git.tt-rss.org/fox/tt-rss/archive/9d3c79498368fa99cfde684c759a1c40825aaaa9.tar.gz SOURCE_URL=https://git.tt-rss.org/fox/tt-rss/archive/9d3c79498368fa99cfde684c759a1c40825aaaa9.tar.gz
SOURCE_SUM=a5f2aae2b566a0d06a7dd6d7d9d39695c09c77e3b4fc76ca2a49c041499b30d5 SOURCE_SUM=cb5a39a61f6319734606f06fafbb0eb60aa488cdc911ec84ee6738da533124cb
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "News feed (RSS/Atom) reader and aggregator.", "en": "News feed (RSS/Atom) reader and aggregator.",
"fr": "Lecteur de flux dactualité utilisant les protocoles RSS et Atom." "fr": "Lecteur de flux dactualité utilisant les protocoles RSS et Atom."
}, },
"version": "20200916~ynh3", "version": "20200916~ynh4",
"url": "http://tt-rss.org", "url": "http://tt-rss.org",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"maintainer": { "maintainer": {

View file

@ -97,15 +97,8 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#================================================= #=================================================
ynh_script_progression --message="Configuring ttrss..." --weight=1 ynh_script_progression --message="Configuring ttrss..." --weight=1
cp ../conf/config.php "$final_path/config.php" domain_path=https://$domain$path_url
ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php"
# Change variables in ttrss configuration
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/config.php"
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$final_path/config.php"
ynh_replace_string --match_string="__DOMAIN_PATH__" --replace_string="https://$domain$path_url" --target_file="$final_path/config.php"
# Recalculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="$final_path/config.php"
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD
@ -130,7 +123,7 @@ ynh_script_progression --message="Initializing database..." --weight=6
ynh_mysql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name" \ ynh_mysql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name" \
< "$final_path/schema/ttrss_schema_mysql.sql" < "$final_path/schema/ttrss_schema_mysql.sql"
ynh_exec_as $app php"${phpversion}" ${final_path}/update.php --update-schema ynh_exec_as $app php${phpversion} ${final_path}/update.php --update-schema
#================================================= #=================================================
# START TTRSS IN BACKGROUND # START TTRSS IN BACKGROUND

View file

@ -127,18 +127,8 @@ then
mv "$tmpdir" "$final_path" mv "$tmpdir" "$final_path"
ynh_secure_remove --file="$tmpdir" ynh_secure_remove --file="$tmpdir"
# Verify the checksum and backup the file if it's different domain_path=https://$domain$path_url
ynh_backup_if_checksum_is_different --file="$final_path/config.php" ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php"
cp ../conf/config.php "$final_path/config.php"
# Change variables in ttrss configuration
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/config.php"
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$final_path/config.php"
ynh_replace_string --match_string="__DOMAIN_PATH__" --replace_string="https://$domain$path_url" --target_file="$final_path/config.php"
# Recalculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="$final_path/config.php"
#================================================= #=================================================
# UPGRADE DATABASE # UPGRADE DATABASE