mirror of
https://github.com/YunoHost-Apps/snipeit_ynh.git
synced 2024-09-03 20:26:16 +02:00
Mail (#37)
* 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:
parent
3500a63030
commit
2d64520b00
4 changed files with 40 additions and 5 deletions
|
@ -48,12 +48,12 @@ DB_SSL_CIPHER=null
|
||||||
MAIL_DRIVER=mail
|
MAIL_DRIVER=mail
|
||||||
MAIL_HOST=127.0.0.1
|
MAIL_HOST=127.0.0.1
|
||||||
MAIL_PORT=25
|
MAIL_PORT=25
|
||||||
MAIL_USERNAME=
|
MAIL_USERNAME=__APP__
|
||||||
MAIL_PASSWORD=
|
MAIL_PASSWORD=__MAIL_PWD__
|
||||||
MAIL_ENCRYPTION=null
|
MAIL_ENCRYPTION=null
|
||||||
MAIL_FROM_ADDR=snipeit@__DOMAIN__
|
MAIL_FROM_ADDR=__APP__@__DOMAIN__
|
||||||
MAIL_FROM_NAME='Snip-IT'
|
MAIL_FROM_NAME='Snip-IT'
|
||||||
MAIL_REPLYTO_ADDR=snipeit@__DOMAIN__
|
MAIL_REPLYTO_ADDR=__APP__@__DOMAIN__
|
||||||
MAIL_REPLYTO_NAME='Snipe-IT'
|
MAIL_REPLYTO_NAME='Snipe-IT'
|
||||||
MAIL_AUTO_EMBED_METHOD='attachment'
|
MAIL_AUTO_EMBED_METHOD='attachment'
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,11 @@ fund = "https://snipeitapp.com/donate"
|
||||||
yunohost = ">= 11.2"
|
yunohost = ">= 11.2"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = false
|
multi_instance = false
|
||||||
|
|
||||||
ldap = false
|
ldap = false
|
||||||
|
|
||||||
sso = false
|
sso = false
|
||||||
|
|
||||||
disk = "200M"
|
disk = "200M"
|
||||||
ram.build = "150M"
|
ram.build = "150M"
|
||||||
ram.runtime = "50M"
|
ram.runtime = "50M"
|
||||||
|
@ -52,6 +55,7 @@ ram.runtime = "50M"
|
||||||
autoupdate.strategy = "latest_github_tag"
|
autoupdate.strategy = "latest_github_tag"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
allow_email = true
|
||||||
|
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
||||||
|
|
30
scripts/change_url
Normal file
30
scripts/change_url
Normal 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
|
|
@ -2,9 +2,10 @@ test_format = 1.0
|
||||||
|
|
||||||
[default]
|
[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.name = "Upgrade from 5.3.1~ynh3 (manifest v1)"
|
||||||
|
|
||||||
test_upgrade_from.ebf4c0a.args.domain="domain.tld"
|
test_upgrade_from.ebf4c0a.args.domain="domain.tld"
|
||||||
test_upgrade_from.ebf4c0a.args.is_public=1
|
test_upgrade_from.ebf4c0a.args.is_public=1
|
||||||
test_upgrade_from.ebf4c0a.args.language="fr"
|
test_upgrade_from.ebf4c0a.args.language="fr"
|
||||||
|
|
Loading…
Add table
Reference in a new issue