mirror of
https://github.com/YunoHost-Apps/ttrss_ynh.git
synced 2024-10-01 13:34:46 +02:00
parent
b44fc0d9d3
commit
b724cd0922
6 changed files with 6 additions and 37 deletions
|
@ -145,8 +145,8 @@
|
|||
// Hostname:port combination to send outgoing mail (i.e. localhost:25).
|
||||
// Blank - use system MTA.
|
||||
|
||||
putenv('TTRSS_SMTP_LOGIN=');
|
||||
putenv('TTRSS_SMTP_PASSWORD=');
|
||||
putenv('TTRSS_SMTP_LOGIN=__APP__');
|
||||
putenv('TTRSS_SMTP_PASSWORD=__MAIL_PWD__');
|
||||
// These two options enable SMTP authentication when sending
|
||||
// outgoing mail. Only used with SMTP_SERVER.
|
||||
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
# OPML import/export (including filters and some settings). Must be done before data_migration plugin if you want to keep feed categories
|
||||
|
||||
# on the original machine
|
||||
sudo mkdir /var/www/tt-rss/export
|
||||
sudo chown -R www-data:www-data /var/www/tt-rss/export/
|
||||
sudo -u www-data php /var/www/tt-rss/update.php --opml-export "MYUSERNAME /var/www/tt-rss/export/export-2020-08-07.opml" # export feeds OPML
|
||||
# on a client
|
||||
rsync -avP my.original.machine.org:/var/www/tt-rss/export/export-2020-08-07.opml ./ # download opml export
|
||||
# login to the new tt-rss instance from a browser, go to Preferences > Feeds, import OPML file
|
||||
|
||||
# migrate all articles from mysql to postgresql
|
||||
# on the original machine
|
||||
git clone https://git.tt-rss.org/fox/ttrss-data-migration
|
||||
sudo chown -R root:www-data ttrss-data-migration/
|
||||
sudo mv ttrss-data-migration/ /var/www/tt-rss/plugins.local/data_migration
|
||||
sudo nano /var/www/tt-rss/config.php # enable data_migration in the PLUGINS array
|
||||
sudo -u www-data php /var/www/tt-rss/update.php --data_user MYUSERNAME --data_export /var/www/tt-rss/export/export-2020-08-07.zip # export articles to database-agnostic format
|
||||
|
||||
# on the target machine
|
||||
git clone https://git.tt-rss.org/fox/ttrss-data-migration
|
||||
sudo chown -R root:www-data ttrss-data-migration/
|
||||
sudo mv ttrss-data-migration/ /var/www/rss.example.org/plugins.local/data_migration
|
||||
sudo nano /var/www/rss.example.org/config.php # enable data_migration in the PLUGINS array
|
||||
rsync -avP my.original.machine.org:/var/www/tt-rss/export/export-2020-08-07.zip ./
|
||||
sudo mkdir /var/www/rss.example.org/export
|
||||
sudo mv export-2020-08-07.zip /var/www/rss.example.org/export
|
||||
sudo chown -R root:www-data /var/www/rss.example.org/export
|
||||
sudo chmod -R g+rX /var/www/rss.example.org/export/
|
||||
sudo -u www-data php /var/www/rss.example.org/update.php --data_user MYUSERNAME --data_import /var/www/rss.example.org/export/export-2020-08-07.zip # it can take a while
|
||||
sudo rm -r /var/www/rss.example.org/export/ # cleanup
|
|
@ -47,6 +47,7 @@ ram.runtime = "50M"
|
|||
sha256 = "72ec560bd5ad7bac4789d7af0e5c2d7c1c394e9c540d46d5421ecae219d8f875"
|
||||
|
||||
[resources.system_user]
|
||||
allow_email = true
|
||||
|
||||
[resources.install_dir]
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ ynh_script_progression --message="Updating a configuration file..." --weight=1
|
|||
|
||||
domain_path="https://${new_domain}${new_path}"
|
||||
domain="$new_domain"
|
||||
ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
|
||||
ynh_add_config --template="config.php" --destination="$install_dir/config.php"
|
||||
|
||||
chmod 400 "$install_dir/config.php"
|
||||
chown $app "$install_dir/config.php"
|
||||
|
|
|
@ -16,7 +16,6 @@ ynh_script_progression --message="Setting up source files..." --weight=7
|
|||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
#ynh_setup_source --dest_dir="$install_dir/plugins.local/data_migration" --source_id="data_migration"
|
||||
echo "$(ynh_app_upstream_version)" > "$install_dir/version_static.txt"
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
|
@ -47,7 +46,7 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
|
|||
|
||||
domain_path=https://$domain$path
|
||||
|
||||
ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
|
||||
ynh_add_config --template="config.php" --destination="$install_dir/config.php"
|
||||
|
||||
chmod 400 "$install_dir/config.php"
|
||||
chown $app "$install_dir/config.php"
|
||||
|
|
|
@ -43,7 +43,6 @@ then
|
|||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
#ynh_setup_source --dest_dir="$install_dir/plugins.local/data_migration" --source_id="data_migration"
|
||||
echo "$(ynh_app_upstream_version)" > "$install_dir/version_static.txt"
|
||||
fi
|
||||
|
||||
|
@ -77,7 +76,7 @@ then
|
|||
ynh_script_progression --message="Updating a configuration file..." --weight=2
|
||||
|
||||
domain_path=https://$domain$path
|
||||
ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
|
||||
ynh_add_config --template="config.php" --destination="$install_dir/config.php"
|
||||
|
||||
ynh_script_progression --message="Upgrading the database..." --weight=2
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue