Skip to content

Commit

Permalink
Testing (#100)
Browse files Browse the repository at this point in the history
* Fix shasum
  • Loading branch information
ericgaspar committed Apr 19, 2021
1 parent 7e81de0 commit 5110a2d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 28 deletions.
5 changes: 2 additions & 3 deletions check_process
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
setup_private=0
setup_public=0
upgrade=1
upgrade=1 from_commit=e27175c2dde0ebbd483b212dc76c5b27877e4ed2
backup_restore=1
multi_instance=1
change_url=1
;;; Options
Email=
Notification=none
;;; Upgrade options
; commit=e27175c2dde0ebbd483b212dc76c5b27877e4ed2
name=Merge pull request #79 from ericgaspar/update-to-upstream
; commit=
name=
manifest_arg=domain=DOMAIN&path=PATH
2 changes: 1 addition & 1 deletion conf/app.src
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"en": "News feed (RSS/Atom) reader and aggregator.",
"fr": "Lecteur de flux d’actualité utilisant les protocoles RSS et Atom."
},
"version": "20200916~ynh3",
"version": "20200916~ynh4",
"url": "http://tt-rss.org",
"license": "GPL-3.0-only",
"maintainer": {
Expand Down
13 changes: 3 additions & 10 deletions scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,8 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
ynh_script_progression --message="Configuring ttrss..." --weight=1

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"
domain_path=https://$domain$path_url
ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php"

#=================================================
# SETUP SYSTEMD
Expand All @@ -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" \
< "$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
Expand Down
16 changes: 3 additions & 13 deletions scripts/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,9 @@ then
ynh_secure_remove --file="$final_path"
mv "$tmpdir" "$final_path"
ynh_secure_remove --file="$tmpdir"

# Verify the checksum and backup the file if it's different
ynh_backup_if_checksum_is_different --file="$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"

domain_path=https://$domain$path_url
ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php"

#=================================================
# UPGRADE DATABASE
Expand Down

0 comments on commit 5110a2d

Please sign in to comment.