From 57b8f407058d98a7eb750f121ae79590190b4ace Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 30 Jun 2021 10:13:41 +0200 Subject: [PATCH] Fix --- conf/mongod.conf | 3 ++- conf/systemd.service | 6 ++---- scripts/_common.sh | 3 --- scripts/install | 4 ++-- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/conf/mongod.conf b/conf/mongod.conf index 00b90b1..4bedf87 100644 --- a/conf/mongod.conf +++ b/conf/mongod.conf @@ -32,7 +32,8 @@ processManagement: #operationProfiling: -replSetName: rs01 +replication: + replSetName: "rs01" #sharding: diff --git a/conf/systemd.service b/conf/systemd.service index d41206c..883e759 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,12 +8,10 @@ WorkingDirectory=__FINALPATH__ Environment="PATH=__ENV_PATH__" Environment="NODE_ENV=production" ExecStart=__YNH_NODE__ __FINALPATH__/main.js - StandardOutput=syslog StandardError=syslog -SyslogIdentifier=rocketchat - -Environment=MONGO_URL=mongodb://127.0.0.1:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://127.0.0.1:27017/local?replicaSet=rs01 ROOT_URL=http://__DOMAIN__:__PORT__ PORT=__PORT__ +SyslogIdentifier=__APP__ +Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ROOT_URL=http://__DOMAIN__:__PORT__ PORT=__PORT__ [Install] WantedBy=multi-user.target diff --git a/scripts/_common.sh b/scripts/_common.sh index 5dada9d..157327b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,9 +4,6 @@ # COMMON VARIABLES #================================================= -# dependencies used by the app -#pkg_dependencies="apt-transport-https build-essential gzip curl graphicsmagick" dirmngr - nodejs_version=12 # dependencies used by the app diff --git a/scripts/install b/scripts/install index 0235e13..ac6c464 100644 --- a/scripts/install +++ b/scripts/install @@ -125,8 +125,8 @@ pushd $final_path/programs/server npm install -g inherits n ynh_exec_as $app env $ynh_node_load_PATH npm install - export MONGO_URL='mongodb://$db_user:$db_pwdd@host:27017/$db_name' - export ROOT_URL='http://$domain' + #export MONGO_URL='mongodb://$db_user:$db_pwdd@host:27017/$db_name' + #export ROOT_URL='http://$domain' #export MAIL_URL='smtp://user:password@mailhost:port/' popd