1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ttrss_ynh.git synced 2024-10-01 13:34:46 +02:00
This commit is contained in:
ericgaspar 2021-12-21 16:48:03 +01:00
parent 459bc793b3
commit 4e6345fb60
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 12 additions and 5 deletions

View file

@ -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

View file

@ -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