mirror of
https://github.com/YunoHost-Apps/commento_ynh.git
synced 2024-09-03 18:16:16 +02:00
Set env file
This commit is contained in:
parent
e53ec5f778
commit
5c05c18fba
4 changed files with 14 additions and 17 deletions
|
@ -11,9 +11,9 @@ COMMENTO_POSTGRES=postgres://__DB_USER__:__DB_PWD__@127.0.0.1:5432/__DB_NAME__?s
|
|||
# Set the SMTP credentials
|
||||
COMMENTO_SMTP_HOST=localhost
|
||||
COMMENTO_SMTP_PORT=25
|
||||
COMMENTO_SMTP_USERNAME=example@__DOMAIN__
|
||||
COMMENTO_SMTP_USERNAME=admin@__DOMAIN__
|
||||
COMMENTO_SMTP_PASSWORD=
|
||||
COMMENTO_SMTP_FROM_ADDRESS=no-reply@commento.io
|
||||
COMMENTO_SMTP_FROM_ADDRESS=no-reply@__DOMAIN__
|
||||
|
||||
# Set Google OAuth credentials
|
||||
COMMENTO_GOOGLE_KEY=
|
||||
|
|
|
@ -6,11 +6,8 @@ After=network.target postgresql.service
|
|||
Type=simple
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
Environment=COMMENTO_CONFIG_FILE=__FINALPATH__/commento.env
|
||||
ExecStart=__FINALPATH__/commento
|
||||
Environment=COMMENTO_ORIGIN=https://__DOMAIN__
|
||||
Environment=COMMENTO_PORT=__PORT__
|
||||
Environment=COMMENTO_POSTGRES=postgres://__DB_USER__:__DB_PWD__@127.0.0.1:5432/__DB_NAME__?sslmode=disable
|
||||
Environment=COMMENTO_STATIC=__FINALPATH__
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -106,15 +106,15 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1
|
|||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
# #=================================================
|
||||
# # ADD A CONFIGURATION
|
||||
# #=================================================
|
||||
# ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
#=================================================
|
||||
# ADD A CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
# ynh_add_config --template="../conf/.env" --destination="$final_path/.env"
|
||||
ynh_add_config --template="../conf/.env" --destination="$final_path/commento.env"
|
||||
|
||||
# chmod 400 "$final_path/.env"
|
||||
# chown $app:$app "$final_path/.env"
|
||||
chmod 400 "$final_path/commento.env"
|
||||
chown $app:$app "$final_path/commento.env"
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
|
|
|
@ -80,7 +80,7 @@ then
|
|||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path"
|
||||
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/commento.env"
|
||||
fi
|
||||
|
||||
chmod 750 "$final_path"
|
||||
|
@ -107,10 +107,10 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
|||
# #=================================================
|
||||
# ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||
|
||||
# ynh_add_config --template="../conf/.env" --destination="$final_path/.env"
|
||||
# ynh_add_config --template="../conf/.env" --destination="$final_path/commento.env"
|
||||
|
||||
# chmod 400 "$final_path/.env"
|
||||
# chown $app:$app "$final_path/.env"
|
||||
# chmod 400 "$final_path/commento.env"
|
||||
# chown $app:$app "$final_path/commento.env"
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
|
|
Loading…
Add table
Reference in a new issue