mirror of
https://github.com/YunoHost-Apps/miniflux_ynh.git
synced 2024-09-03 19:45:58 +02:00
commit
2594010525
7 changed files with 5 additions and 15 deletions
|
@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
Minimalist and opinionated RSS feed reader.
|
Minimalist and opinionated RSS feed reader.
|
||||||
|
|
||||||
**Shipped version:** 2.0.51~ynh1
|
**Shipped version:** 2.0.51~ynh2
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
||||||
|
|
||||||
Lecteur de flux RSS minimaliste.
|
Lecteur de flux RSS minimaliste.
|
||||||
|
|
||||||
**Version incluse :** 2.0.51~ynh1
|
**Version incluse :** 2.0.51~ynh2
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
|
@ -6,3 +6,4 @@ CREATE_ADMIN=1
|
||||||
ADMIN_USERNAME=__ADMIN__
|
ADMIN_USERNAME=__ADMIN__
|
||||||
ADMIN_PASSWORD=__PASSWORD__
|
ADMIN_PASSWORD=__PASSWORD__
|
||||||
BATCH_SIZE=200
|
BATCH_SIZE=200
|
||||||
|
AUTH_PROXY_HEADER=Remote-User
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "Miniflux"
|
||||||
description.en = "Minimalist and opinionated RSS feed reader"
|
description.en = "Minimalist and opinionated RSS feed reader"
|
||||||
description.fr = "Agrégateur de flux RSS minimaliste"
|
description.fr = "Agrégateur de flux RSS minimaliste"
|
||||||
|
|
||||||
version = "2.0.51~ynh1"
|
version = "2.0.51~ynh2"
|
||||||
|
|
||||||
maintainers = ["eric_G"]
|
maintainers = ["eric_G"]
|
||||||
|
|
||||||
|
|
|
@ -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
|
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"
|
ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
chmod -R o-rwx "$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
|
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
||||||
# Use logrotate to manage application logfile(s)
|
|
||||||
ynh_use_logrotate
|
ynh_use_logrotate
|
||||||
|
|
||||||
yunohost service add $app --description="Minimalist feed reader" --log="/var/log/$app/$app.log"
|
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
|
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
|
ynh_systemd_action --service_name=$app --action=start --log_path=systemd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -16,20 +16,16 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
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
|
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Removing $app service..." --weight=1
|
ynh_script_progression --message="Removing $app service..." --weight=1
|
||||||
yunohost service remove $app
|
yunohost service remove $app
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove the dedicated systemd config
|
|
||||||
ynh_remove_systemd_config
|
ynh_remove_systemd_config
|
||||||
|
|
||||||
# Remove the dedicated NGINX config
|
|
||||||
ynh_remove_nginx_config
|
ynh_remove_nginx_config
|
||||||
|
|
||||||
# Remove the app-specific logrotate config
|
|
||||||
ynh_remove_logrotate
|
ynh_remove_logrotate
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -32,7 +32,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
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"
|
ynh_setup_source --dest_dir=$install_dir --keep="$app.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -45,12 +44,10 @@ chmod +x "$install_dir/miniflux"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated NGINX config
|
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
||||||
# Use logrotate to manage app-specific logfile(s)
|
|
||||||
ynh_use_logrotate --non-append
|
ynh_use_logrotate --non-append
|
||||||
|
|
||||||
yunohost service add $app --description="Minimalist feed reader" --log="/var/log/$app/$app.log"
|
yunohost service add $app --description="Minimalist feed reader" --log="/var/log/$app/$app.log"
|
||||||
|
|
Loading…
Add table
Reference in a new issue