mirror of
https://github.com/YunoHost-Apps/ttrss_ynh.git
synced 2024-10-01 13:34:46 +02:00
parent
c1a22e9e37
commit
594482b9a3
5 changed files with 5 additions and 7 deletions
|
@ -15,7 +15,7 @@
|
||||||
// *** Basic settings (important!) ***
|
// *** Basic settings (important!) ***
|
||||||
// ***********************************
|
// ***********************************
|
||||||
|
|
||||||
putenv('TTRSS_SELF_URL_PATH=__DOMAIN_PATH__');
|
putenv('TTRSS_SELF_URL_PATH=https://__DOMAIN____PATH__');
|
||||||
// Full URL of your tt-rss installation. This should be set to the
|
// Full URL of your tt-rss installation. This should be set to the
|
||||||
// location of tt-rss directory, e.g. http://example.org/tt-rss/
|
// location of tt-rss directory, e.g. http://example.org/tt-rss/
|
||||||
// You need to set this option correctly otherwise several features
|
// You need to set this option correctly otherwise several features
|
||||||
|
@ -177,7 +177,7 @@
|
||||||
// Disabling auth_internal in this list would automatically disable
|
// Disabling auth_internal in this list would automatically disable
|
||||||
// reset password link on the login form.
|
// reset password link on the login form.
|
||||||
|
|
||||||
putenv('TTRSS_LOG_DESTINATION=sql');
|
putenv('TTRSS_LOG_DESTINATION=syslog');
|
||||||
// Log destination to use. Possible values: sql (uses internal logging
|
// Log destination to use. Possible values: sql (uses internal logging
|
||||||
// you can read in Preferences -> System), syslog - logs to system log.
|
// you can read in Preferences -> System), syslog - logs to system log.
|
||||||
// Setting this to blank uses PHP logging (usually to http server
|
// Setting this to blank uses PHP logging (usually to http server
|
||||||
|
|
|
@ -32,8 +32,9 @@ ynh_change_url_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||||
|
|
||||||
domain_path="https://${new_domain}${new_path}"
|
|
||||||
domain="$new_domain"
|
domain="$new_domain"
|
||||||
|
path="$new_path"
|
||||||
|
|
||||||
ynh_add_config --template="config.php" --destination="$install_dir/config.php"
|
ynh_add_config --template="config.php" --destination="$install_dir/config.php"
|
||||||
|
|
||||||
chmod 400 "$install_dir/config.php"
|
chmod 400 "$install_dir/config.php"
|
||||||
|
|
|
@ -44,8 +44,6 @@ yunohost service add $app --description="News feed reader and aggregator" --log=
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
domain_path=https://$domain$path
|
|
||||||
|
|
||||||
ynh_add_config --template="config.php" --destination="$install_dir/config.php"
|
ynh_add_config --template="config.php" --destination="$install_dir/config.php"
|
||||||
|
|
||||||
chmod 400 "$install_dir/config.php"
|
chmod 400 "$install_dir/config.php"
|
||||||
|
|
|
@ -30,7 +30,7 @@ ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./d
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE PHP-FPM CONFIGURATION
|
# RESTORE THE PHP-FPM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weight=50
|
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=5
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Updating a configuration file..." --weight=2
|
ynh_script_progression --message="Updating a configuration file..." --weight=2
|
||||||
|
|
||||||
domain_path=https://$domain$path
|
|
||||||
ynh_add_config --template="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
|
ynh_script_progression --message="Upgrading the database..." --weight=2
|
||||||
|
|
Loading…
Reference in a new issue