1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freescout_ynh.git synced 2024-09-03 18:36:23 +02:00

Merge pull request #3 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2023-12-15 20:45:10 +01:00 committed by GitHub
commit 739da90f40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 12 deletions

View file

@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
FreeScout is the super lightweight and powerful free open source help desk and shared inbox built with PHP (Laravel framework). Now you can enjoy free Zendesk & Help Scout without giving up privacy or locking yourself into a service you don't control. FreeScout is the super lightweight and powerful free open source help desk and shared inbox built with PHP (Laravel framework). Now you can enjoy free Zendesk & Help Scout without giving up privacy or locking yourself into a service you don't control.
**Shipped version:** 1.8.109~ynh1 **Shipped version:** 1.8.113~ynh1
**Demo:** https://demo.freescout.net/login **Demo:** https://demo.freescout.net/login

View file

@ -18,7 +18,7 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
FreeScout est un service d'assistance open source gratuit ultra léger et puissant et une boîte de réception partagée construite avec PHP (framework Laravel). Vous pouvez désormais profiter gratuitement de Zendesk et Help Scout sans renoncer à votre confidentialité ni vous enfermer dans un service que vous ne contrôlez pas. FreeScout est un service d'assistance open source gratuit ultra léger et puissant et une boîte de réception partagée construite avec PHP (framework Laravel). Vous pouvez désormais profiter gratuitement de Zendesk et Help Scout sans renoncer à votre confidentialité ni vous enfermer dans un service que vous ne contrôlez pas.
**Version incluse :** 1.8.109~ynh1 **Version incluse :** 1.8.113~ynh1
**Démo :** https://demo.freescout.net/login **Démo :** https://demo.freescout.net/login

View file

@ -7,7 +7,7 @@ name = "FreeScout"
description.en = "Help desk & shared mailbox" description.en = "Help desk & shared mailbox"
description.fr = "Service d'assistance et boîte aux lettres partagée" description.fr = "Service d'assistance et boîte aux lettres partagée"
version = "1.8.109~ynh1" version = "1.8.113~ynh1"
maintainers = ["eric_G"] maintainers = ["eric_G"]
@ -50,8 +50,8 @@ ram.runtime = "50M"
[resources.sources] [resources.sources]
[resources.sources.main] [resources.sources.main]
url = "https://github.com/freescout-helpdesk/freescout/archive/refs/tags/1.8.109.tar.gz" url = "https://github.com/freescout-helpdesk/freescout/archive/refs/tags/1.8.113.tar.gz"
sha256 = "2c508f2e8dcf9489d8d9b82da8cd5928168998dabc41e9450833364a60ae29b8" sha256 = "09bed76c8655023da8f2f13eebd9e6217bfb705af24c90c2c7b957b7dc162e02"
autoupdate.strategy = "latest_github_tag" autoupdate.strategy = "latest_github_tag"
[resources.system_user] [resources.system_user]

View file

@ -9,6 +9,7 @@
source _common.sh source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#================================================= #=================================================
# MODIFY URL IN NGINX CONF # MODIFY URL IN NGINX CONF
#================================================= #=================================================
@ -21,7 +22,11 @@ ynh_change_url_nginx_config
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_replace_string --match_string="APP_URL=https://*" --replace_string="APP_URL=https://$new_domain" --target_file=$install_dir/.env ynh_replace_string --match_string="APP_URL=https://$old_domain" --replace_string="APP_URL=https://$new_domain" --target_file=$install_dir/.env
pushd $install_dir
php$phpversion artisan freescout:clear-cache
popd
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT

View file

@ -21,7 +21,6 @@ timezone=$(cat /etc/timezone)
#================================================= #=================================================
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 manifest.toml
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"
@ -36,10 +35,8 @@ find $install_dir -type d -exec chmod 775 {} \;
#================================================= #=================================================
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 PHP-FPM config using the conf/php-fpm.conf or conf/extra_php-fpm.conf
ynh_add_fpm_config ynh_add_fpm_config
# Create a dedicated NGINX config using the conf/nginx.conf template
ynh_add_nginx_config ynh_add_nginx_config
ynh_add_config --template="cron" --destination="/etc/cron.d/$app" ynh_add_config --template="cron" --destination="/etc/cron.d/$app"

View file

@ -47,7 +47,6 @@ ynh_restore_file --origin_path="/etc/cron.d/$app"
#================================================= #=================================================
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1 ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
# Typically you only have either $app or php-fpm but not both at the same time...
ynh_systemd_action --service_name=php$phpversion-fpm --action=reload ynh_systemd_action --service_name=php$phpversion-fpm --action=reload
ynh_systemd_action --service_name=nginx --action=reload ynh_systemd_action --service_name=nginx --action=reload

View file

@ -13,7 +13,6 @@ email=$(ynh_user_get_info --username=$admin --key=mail)
firstname=$(ynh_user_get_info --username=$admin --key=firstname) firstname=$(ynh_user_get_info --username=$admin --key=firstname)
lastname=$(ynh_user_get_info --username=$admin --key=lastname) lastname=$(ynh_user_get_info --username=$admin --key=lastname)
upgrade_type=$(ynh_check_app_version_changed) upgrade_type=$(ynh_check_app_version_changed)
#================================================= #=================================================
@ -28,7 +27,6 @@ then
ynh_secure_remove --file="/$install_dir/vendor" ynh_secure_remove --file="/$install_dir/vendor"
# Download, check integrity, uncompress and patch the source from manifest.toml
ynh_setup_source --dest_dir="$install_dir" #--keep='.env' ynh_setup_source --dest_dir="$install_dir" #--keep='.env'
fi fi