1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/selfoss_ynh.git synced 2024-09-03 20:16:21 +02:00

Merge pull request #16 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2023-10-27 23:56:38 +02:00 committed by GitHub
commit e16cf96a02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 19 additions and 36 deletions

View file

@ -31,7 +31,6 @@ Selfoss is a multipurpose RSS reader and feed aggregation web application. It al
* Official user documentation: <https://selfoss.aditu.de/> * Official user documentation: <https://selfoss.aditu.de/>
* Official admin documentation: <https://github.com/fossar/selfoss/wiki> * Official admin documentation: <https://github.com/fossar/selfoss/wiki>
* Upstream app code repository: <https://github.com/fossar/selfoss> * Upstream app code repository: <https://github.com/fossar/selfoss>
* YunoHost documentation for this app: <https://yunohost.org/app_selfoss>
* Report a bug: <https://github.com/YunoHost-Apps/selfoss_ynh/issues> * Report a bug: <https://github.com/YunoHost-Apps/selfoss_ynh/issues>
## Developer info ## Developer info

View file

@ -30,7 +30,6 @@ Selfoss est un lecteur RSS polyvalent et une application Web d'agrégation de fl
* Documentation officielle utilisateur : <https://selfoss.aditu.de/> * Documentation officielle utilisateur : <https://selfoss.aditu.de/>
* Documentation officielle de ladmin : <https://github.com/fossar/selfoss/wiki> * Documentation officielle de ladmin : <https://github.com/fossar/selfoss/wiki>
* Dépôt de code officiel de lapp : <https://github.com/fossar/selfoss> * Dépôt de code officiel de lapp : <https://github.com/fossar/selfoss>
* Documentation YunoHost pour cette app : <https://yunohost.org/app_selfoss>
* Signaler un bug : <https://github.com/YunoHost-Apps/selfoss_ynh/issues> * Signaler un bug : <https://github.com/YunoHost-Apps/selfoss_ynh/issues>
## Informations pour les développeurs ## Informations pour les développeurs

View file

@ -1,24 +0,0 @@
;; Test complet
; Manifest
domain="domain.tld"
path="/path"
is_public=1
; Checks
pkg_linter=1
setup_sub_dir=1
setup_root=1
setup_nourl=0
setup_private=1
setup_public=1
upgrade=1
#upgrade=1 from_commit=CommitHash
backup_restore=1
multi_instance=1
change_url=1
;;; Options
Email=
Notification=none
;;; Upgrade options
; commit=CommitHash
name=Name and date of the commit.
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666&

View file

@ -1 +1 @@
*/15 * * * * __APP__ /usr/bin/php__PHPVERSION__ __INSTALL_DIR__/cliupdate.php >>/var/log/selfoss_update.log > /dev/null */15 * * * * __APP__ /usr/bin/php__PHPVERSION__ __INSTALL_DIR__/cliupdate.php >> __INSTALL_DIR__/data/logs/cliupdate.log

View file

@ -5,7 +5,7 @@ name = "Selfoss"
description.en = "Multipurpose RSS reader" description.en = "Multipurpose RSS reader"
description.fr = "Lecteur RSS polyvalent" description.fr = "Lecteur RSS polyvalent"
version = "2.19~ynh2" version = "2.19~ynh3"
maintainers = ["eric_G"] maintainers = ["eric_G"]
@ -52,4 +52,4 @@ ram.runtime = "50M"
main.url = "/" main.url = "/"
[resources.apt] [resources.apt]
packages = "sqlite3, php8.2-xml, php8.2-sqlite3, php8.2-mbstring, php8.2-mysql, php8.2-gd, php8.2-curl" packages = "sqlite3, php8.2-xml, php8.2-sqlite3, php8.2-mbstring, php8.2-gd, php8.2-curl"

View file

@ -49,7 +49,7 @@ ynh_add_nginx_config
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/config.ini" --destination="$install_dir/config.ini" ynh_add_config --template="config.ini" --destination="$install_dir/config.ini"
chmod 400 "$install_dir/config.ini" chmod 400 "$install_dir/config.ini"
chown $app:$app "$install_dir/config.ini" chown $app:$app "$install_dir/config.ini"
@ -59,7 +59,7 @@ chown $app:$app "$install_dir/config.ini"
#================================================= #=================================================
ynh_script_progression --message="Setuping a cron..." --weight=1 ynh_script_progression --message="Setuping a cron..." --weight=1
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" ynh_add_config --template="cron" --destination="/etc/cron.d/$app"
chown root: "/etc/cron.d/$app" chown root: "/etc/cron.d/$app"
chmod 644 "/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app"

View file

@ -21,19 +21,19 @@ upgrade_type=$(ynh_check_app_version_changed)
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
# If fpm_footprint doesn't exist, create it # If fpm_footprint doesn't exist, create it
if [ -z "$fpm_footprint" ]; then if [ -z "${fpm_footprint:-}" ]; then
fpm_footprint=low fpm_footprint=low
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
fi fi
# If fpm_free_footprint doesn't exist, create it # If fpm_free_footprint doesn't exist, create it
if [ -z "$fpm_free_footprint" ]; then if [ -z "${fpm_free_footprint:-}" ]; then
fpm_free_footprint=0 fpm_free_footprint=0
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
fi fi
# If fpm_usage doesn't exist, create it # If fpm_usage doesn't exist, create it
if [ -z "$fpm_usage" ]; then if [ -z "${fpm_usage:-}" ]; then
fpm_usage=low fpm_usage=low
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
fi fi
@ -60,7 +60,7 @@ chmod g+w $install_dir/data/cache $install_dir/data/favicons $install_dir/data/l
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1 ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
@ -70,11 +70,20 @@ ynh_add_nginx_config
#================================================= #=================================================
ynh_script_progression --message="Updating a configuration file..." --weight=1 ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="../conf/config.ini" --destination="$install_dir/config.ini" ynh_add_config --template="config.ini" --destination="$install_dir/config.ini"
chmod 400 "$install_dir/config.ini" chmod 400 "$install_dir/config.ini"
chown $app:$app "$install_dir/config.ini" chown $app:$app "$install_dir/config.ini"
#=================================================
# SETUP A CRON
#=================================================
ynh_script_progression --message="Setuping a cron..." --weight=1
ynh_add_config --template="cron" --destination="/etc/cron.d/$app"
chown root: "/etc/cron.d/$app"
chmod 644 "/etc/cron.d/$app"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================