1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/miniflux_ynh.git synced 2024-09-03 19:45:58 +02:00
This commit is contained in:
ericgaspar 2023-12-26 09:12:37 +01:00
parent 2e4624a0a8
commit b25da2ec7d
4 changed files with 1 additions and 12 deletions

View file

@ -5,7 +5,7 @@ name = "Miniflux"
description.en = "Minimalist and opinionated RSS feed reader"
description.fr = "Agrégateur de flux RSS minimaliste"
version = "2.0.51~ynh1"
version = "2.0.51~ynh2"
maintainers = ["eric_G"]

View file

@ -28,7 +28,6 @@ ynh_psql_execute_as_root --sql="CREATE EXTENSION hstore;" --database=$db_name
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
chmod -R o-rwx "$install_dir"
@ -50,12 +49,10 @@ chown $app "$install_dir/$app.conf"
#=================================================
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config
ynh_add_systemd_config
# Use logrotate to manage application logfile(s)
ynh_use_logrotate
yunohost service add $app --description="Minimalist feed reader" --log="/var/log/$app/$app.log"
@ -65,7 +62,6 @@ yunohost service add $app --description="Minimalist feed reader" --log="/var/log
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=2
# Start a systemd service
ynh_systemd_action --service_name=$app --action=start --log_path=systemd
#=================================================

View file

@ -16,20 +16,16 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status $app >/dev/null
then
ynh_script_progression --message="Removing $app service..." --weight=1
yunohost service remove $app
fi
# Remove the dedicated systemd config
ynh_remove_systemd_config
# Remove the dedicated NGINX config
ynh_remove_nginx_config
# Remove the app-specific logrotate config
ynh_remove_logrotate
#=================================================

View file

@ -32,7 +32,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir=$install_dir --keep="$app.conf"
fi
@ -45,12 +44,10 @@ chmod +x "$install_dir/miniflux"
#=================================================
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config
ynh_add_systemd_config
# Use logrotate to manage app-specific logfile(s)
ynh_use_logrotate --non-append
yunohost service add $app --description="Minimalist feed reader" --log="/var/log/$app/$app.log"