1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00
This commit is contained in:
ericgaspar 2021-09-20 23:42:32 +02:00
parent 5a79dd4cd1
commit 3e578d125a
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 12 additions and 13 deletions

View file

@ -1,7 +1,7 @@
SOURCE_URL=https://releases.rocket.chat/3.16.2/download
SOURCE_SUM=97c0ddcdb8ceb95bf87282368d4f6193e1fa86e33a8f139593ca93521159c728
SOURCE_URL=https://releases.rocket.chat/3.18.1/download
SOURCE_SUM=c895fa9bef7b83b2005ae749ac0897e78f861fc4777b987a75dc62b077d51614
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=rocket.chat-3.16.2.tgz
SOURCE_FILENAME=rocket.chat-3.18.1.tgz
SOURCE_EXTRACT=true

View file

@ -1,21 +1,23 @@
[Unit]
Description=The Rocket.Chat server
Wants=__MONGODB_SERVICENAME__.service
#Wants=__MONGODB_SERVICENAME__.service
After=network.target remote-fs.target nss-lookup.target nginx.service __MONGODB_SERVICENAME__.service
[Service]
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__
Environment="PATH=__ENV_PATH__"
Environment="NODE_ENV=production"
ExecStart=__YNH_NODE__ main.js
ExecStart=__YNH_NODE__ __FINALPATH__/main.js
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=__APP__
Environment=MONGO_URL=mongodb://localhost:27017/__APP__?replicaSet=rs01
Environment=MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01
Environment=ROOT_URL=https://__DOMAIN____PATH__
Environment=PORT=__PORT__
Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ROOT_URL=http://__DOMAIN____PATH__/ PORT=__PORT__
#Environment=MONGO_URL=mongodb://localhost:27017/__APP__?replicaSet=rs01
#Environment=MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01
#Environment=ROOT_URL=https://__DOMAIN____PATH__
#Environment=PORT=__PORT__
[Install]
WantedBy=multi-user.target

View file

@ -32,8 +32,7 @@
"install" : [
{
"name": "domain",
"type": "domain",
"example": "domain.org"
"type": "domain"
},
{
"name": "path",

View file

@ -37,8 +37,6 @@ db_user=$db_name
#=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=1
ynh_webpath_available --domain=$domain --path_url=$path_url \
|| ynh_die --message="Path not available: ${domain}${path_url}"
test ! -d $final_path \
|| ynh_die --message="There is already a directory: $final_path "