1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/miniflux_ynh.git synced 2024-09-03 19:45:58 +02:00

Merge pull request #42 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2023-12-26 14:42:18 +01:00 committed by GitHub
commit 2594010525
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 5 additions and 15 deletions

View file

@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Minimalist and opinionated RSS feed reader.
**Shipped version:** 2.0.51~ynh1
**Shipped version:** 2.0.51~ynh2
## Screenshots

View file

@ -18,7 +18,7 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
Lecteur de flux RSS minimaliste.
**Version incluse :** 2.0.51~ynh1
**Version incluse :** 2.0.51~ynh2
## Captures décran

View file

@ -6,3 +6,4 @@ CREATE_ADMIN=1
ADMIN_USERNAME=__ADMIN__
ADMIN_PASSWORD=__PASSWORD__
BATCH_SIZE=200
AUTH_PROXY_HEADER=Remote-User

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"