From ddb839dfd930a85c3bbf674c9450375290d7d60e Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Thu, 24 Mar 2022 09:38:44 +0000 Subject: [PATCH] fix --- conf/.env.example | 2 +- conf/systemd.service | 4 ++-- scripts/_common.sh | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/conf/.env.example b/conf/.env.example index 1a6352a..748f4ca 100644 --- a/conf/.env.example +++ b/conf/.env.example @@ -20,7 +20,7 @@ CHECK_FOR_UPDATES=check_if_updates_are_available # EMAIL CONFIGURATION DEFAULT_FROM_EMAIL=tooljet@__DOMAIN__ -SMTP_DOMAIN=localhost +SMTP_DOMAIN=__MAIN_DOMAIN__ SMTP_PORT=25 # DISABLE USER SIGNUPS (true or false). Default: true diff --git a/conf/systemd.service b/conf/systemd.service index e0bdd18..cf78bc2 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,5 +1,5 @@ [Unit] -Description=Small description of the service +Description=ToolJet server After=network.target [Service] @@ -8,7 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ Environment="__YNH_NODE_LOAD_PATH__" -ExecStart=__YNH_NPM__ start:prod +ExecStart=__YNH_NPM__ run start:prod StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit diff --git a/scripts/_common.sh b/scripts/_common.sh index facb060..edbea54 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -9,6 +9,8 @@ pkg_dependencies="postgresql postgresql-contrib libpq-dev" NODEJS_VERSION="14" +main_domain=$(cat /etc/yunohost/current_host) + #================================================= # PERSONAL HELPERS #=================================================