From 4e6345fb60b81e6bb172663e36336d2bc2d2a47b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 21 Dec 2021 16:48:03 +0100 Subject: [PATCH] Fix --- check_process | 4 ++-- scripts/install | 13 ++++++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/check_process b/check_process index 15d67b3..8bc28d7 100644 --- a/check_process +++ b/check_process @@ -8,8 +8,8 @@ setup_sub_dir=1 setup_root=1 setup_nourl=0 - setup_private=0 - setup_public=0 + setup_private=1 + setup_public=1 upgrade=1 backup_restore=1 multi_instance=1 diff --git a/scripts/install b/scripts/install index 89ea33b..69ff824 100644 --- a/scripts/install +++ b/scripts/install @@ -132,7 +132,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" -sudo -u www-data php${phpversion} ${final_path}/update.php --update-schema +php${phpversion} ${final_path}/update.php --update-schema #================================================= # GENERIC FINALIZATION @@ -151,6 +151,15 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service ynh_systemd_action --service_name=$app --action="start" +#================================================= +# SETUP A CRON +#================================================= +ynh_script_progression --message="Setuping a cron..." --weight=1 + +ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" +chown root: "/etc/cron.d/$app" +chmod 644 "/etc/cron.d/$app" + #================================================= # SETUP SSOWAT #================================================= @@ -161,8 +170,6 @@ ynh_script_progression --message="Configuring permissions..." --weight=1 if [ $is_public -eq 1 ] then - # Everyone can access the app. - # The "main" permission is automatically created before the install script. ynh_permission_update --permission="main" --add="visitors" fi