1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snipeit_ynh.git synced 2024-09-03 20:26:16 +02:00
* Update snipeit.env

* Update manifest.toml

* Update manifest.toml

* fix

* Update tests.toml

* cleaning

* Auto-update README

* Update change_url

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
eric_G 2024-02-15 22:53:54 +01:00 committed by GitHub
parent 3500a63030
commit 2d64520b00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 40 additions and 5 deletions

View file

@ -48,12 +48,12 @@ DB_SSL_CIPHER=null
MAIL_DRIVER=mail
MAIL_HOST=127.0.0.1
MAIL_PORT=25
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_USERNAME=__APP__
MAIL_PASSWORD=__MAIL_PWD__
MAIL_ENCRYPTION=null
MAIL_FROM_ADDR=snipeit@__DOMAIN__
MAIL_FROM_ADDR=__APP__@__DOMAIN__
MAIL_FROM_NAME='Snip-IT'
MAIL_REPLYTO_ADDR=snipeit@__DOMAIN__
MAIL_REPLYTO_ADDR=__APP__@__DOMAIN__
MAIL_REPLYTO_NAME='Snipe-IT'
MAIL_AUTO_EMBED_METHOD='attachment'

View file

@ -23,8 +23,11 @@ fund = "https://snipeitapp.com/donate"
yunohost = ">= 11.2"
architectures = "all"
multi_instance = false
ldap = false
sso = false
disk = "200M"
ram.build = "150M"
ram.runtime = "50M"
@ -52,6 +55,7 @@ ram.runtime = "50M"
autoupdate.strategy = "latest_github_tag"
[resources.system_user]
allow_email = true
[resources.install_dir]

30
scripts/change_url Normal file
View file

@ -0,0 +1,30 @@
#!/bin/bash
#=================================================
# GENERIC STARTING
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
ynh_change_url_nginx_config
#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_replace_string --match_string="APP_URL=https://$old_domain" --replace_string="APP_URL=https://$new_domain" --target_file=$install_dir/.env
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Change of URL completed for $app" --last

View file

@ -2,9 +2,10 @@ test_format = 1.0
[default]
exclude = ["install.subdir", "install.nourl", "change_url"]
exclude = ["install.subdir"]
test_upgrade_from.ebf4c0a.name = "Upgrade from 5.3.1~ynh3 (manifest v1)"
test_upgrade_from.ebf4c0a.args.domain="domain.tld"
test_upgrade_from.ebf4c0a.args.is_public=1
test_upgrade_from.ebf4c0a.args.language="fr"