mirror of
https://github.com/YunoHost-Apps/bookwyrm_ynh.git
synced 2024-09-03 18:16:12 +02:00
Merge pull request #48 from YunoHost-Apps/adjust-email
Adjust email for Yunohost >11.2
This commit is contained in:
commit
179fc0879d
6 changed files with 23 additions and 6 deletions
|
@ -32,6 +32,7 @@ BookWyrm is a social network for tracking your reading, talking about books, wri
|
|||
* Official app website: <https://joinbookwyrm.com/fr/>
|
||||
* Official admin documentation: <https://docs.joinbookwyrm.com/>
|
||||
* Upstream app code repository: <https://github.com/bookwyrm-social/bookwyrm>
|
||||
* YunoHost Store: <https://apps.yunohost.org/app/bookwyrm>
|
||||
* Report a bug: <https://github.com/YunoHost-Apps/bookwyrm_ynh/issues>
|
||||
|
||||
## Developer info
|
||||
|
|
|
@ -32,6 +32,7 @@ BookWyrm est un réseau social pour garder la trace de vos lectures, parler de l
|
|||
* Site officiel de l’app : <https://joinbookwyrm.com/fr/>
|
||||
* Documentation officielle de l’admin : <https://docs.joinbookwyrm.com/>
|
||||
* Dépôt de code officiel de l’app : <https://github.com/bookwyrm-social/bookwyrm>
|
||||
* YunoHost Store: <https://apps.yunohost.org/app/bookwyrm>
|
||||
* Signaler un bug : <https://github.com/YunoHost-Apps/bookwyrm_ynh/issues>
|
||||
|
||||
## Informations pour les développeurs
|
||||
|
|
|
@ -47,11 +47,11 @@ FLOWER_PASSWORD=changeme
|
|||
# Email config
|
||||
EMAIL_HOST=localhost
|
||||
EMAIL_PORT=587
|
||||
EMAIL_HOST_USER=__ADMIN_MAIL__
|
||||
EMAIL_HOST_PASSWORD=
|
||||
EMAIL_HOST_USER=__APP__
|
||||
EMAIL_HOST_PASSWORD=__MAIL_PWD__
|
||||
EMAIL_USE_TLS=true
|
||||
EMAIL_USE_SSL=false
|
||||
EMAIL_SENDER_NAME=__ADMIN_MAIL__
|
||||
EMAIL_SENDER_NAME=__APP__
|
||||
# defaults to DOMAIN
|
||||
#EMAIL_SENDER_DOMAIN=
|
||||
|
||||
|
|
|
@ -57,6 +57,7 @@ ram.runtime = "50M"
|
|||
|
||||
|
||||
[resources.system_user]
|
||||
allow_email = true
|
||||
|
||||
[resources.install_dir]
|
||||
|
||||
|
|
|
@ -9,9 +9,8 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
|
||||
admin_mail=$(ynh_user_get_info --username=$admin --key=username)
|
||||
key=$(ynh_string_random --length=32)
|
||||
ynh_app_setting_set --app=$app --key=key --value=$key
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
|
|
|
@ -13,7 +13,11 @@ source /usr/share/yunohost/helpers
|
|||
# LOAD SETTINGS
|
||||
#=================================================
|
||||
|
||||
admin_mail=$(ynh_user_get_info --username=$admin --key=username)
|
||||
# uncomment me after some updates whenever the key variable is set in install for some times
|
||||
#key=$(ynh_app_setting_get --app=$app --key=key --value=$key)
|
||||
|
||||
#remove me when key setting is uncommented (see above)
|
||||
key=$(ynh_string_random --length=32)
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
|
@ -48,6 +52,17 @@ chmod 750 "$install_dir"
|
|||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# CONFIGURE THE INSTALL SCRIPT
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading .env file..." --weight=1
|
||||
|
||||
ynh_add_config --template="../conf/.env.production" --destination="$install_dir/.env"
|
||||
chmod 600 $install_dir/.env
|
||||
chown $app: "$install_dir/.env"
|
||||
|
||||
set -a; source "$install_dir/.env"; set +a
|
||||
|
||||
|
||||
#=================================================
|
||||
# CONFIGURE THEN INSTALL SCRIPT AND DEPENDENCIES
|
||||
|
|
Loading…
Add table
Reference in a new issue