diff --git a/conf/config.php b/conf/config.php index 2be3c1d..e36c36d 100644 --- a/conf/config.php +++ b/conf/config.php @@ -39,7 +39,7 @@ // *** Files and directories *** // ***************************** - putenv('TTRSS_PHP_EXECUTABLE=/usr/bin/php'); + putenv('TTRSS_PHP_EXECUTABLE=/usr/bin/php__PHPVERSION__'); // Path to PHP *COMMAND LINE* executable, used for various command-line tt-rss // programs and update daemon. Do not try to use CGI binary here, it won't work. // If you see HTTP headers being displayed while running tt-rss scripts, diff --git a/scripts/install b/scripts/install index a3c9758..fd0aea4 100644 --- a/scripts/install +++ b/scripts/install @@ -23,6 +23,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH is_public=$YNH_APP_ARG_IS_PUBLIC +phpversion=$YNH_PHP_VERSION app=$YNH_APP_INSTANCE_NAME diff --git a/scripts/remove b/scripts/remove index 9ce5213..7011424 100644 --- a/scripts/remove +++ b/scripts/remove @@ -82,6 +82,14 @@ ynh_script_progression --message="Removing dependencies..." --weight=1 # Remove metapackage and its dependencies ynh_remove_app_dependencies +#================================================= +# REMOVE VARIOUS FILES +#================================================= +ynh_script_progression --message="Removing various files..." --weight=1 + +# Remove a cron file +ynh_exec_warn_less ynh_secure_remove --file="/etc/cron.d/$app" + #================================================= # GENERIC FINALIZATION #=================================================