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-06-30 12:05:42 +02:00
parent 59f1d2c593
commit 124ce91003
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 8 additions and 7 deletions

View file

@ -1,7 +1,7 @@
SOURCE_URL=https://releases.rocket.chat/latest/download SOURCE_URL=https://releases.rocket.chat/${ROCKETCHAT_VERSION}/download
SOURCE_SUM=c77aeed2a5eda4a3e9dfde8cfb742f32138638a3a44d0e9e38005992fcadb45b SOURCE_SUM= ${ROCKETCHAT_SHASUM}
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=rocket.chat-3.16.0.tgz SOURCE_FILENAME=rocket.chat-${ROCKETCHAT_VERSION}.tgz
SOURCE_EXTRACT=true SOURCE_EXTRACT=true

View file

@ -4,6 +4,10 @@
# COMMON VARIABLES # COMMON VARIABLES
#================================================= #=================================================
ROCKETCHAT_VERSION=3.16.0
ROCKETCHAT_SHASUM=c77aeed2a5eda4a3e9dfde8cfb742f32138638a3a44d0e9e38005992fcadb45b
nodejs_version=12 nodejs_version=12
# dependencies used by the app # dependencies used by the app

View file

@ -122,7 +122,7 @@ ynh_script_progression --message="Building $app... (this will take some time and
pushd $final_path/programs/server pushd $final_path/programs/server
ynh_use_nodejs ynh_use_nodejs
npm install -g inherits n #npm install -g inherits n
ynh_exec_as $app env $ynh_node_load_PATH npm install ynh_exec_as $app env $ynh_node_load_PATH npm install
#export MONGO_URL='mongodb://$db_user:$db_pwdd@host:27017/$db_name' #export MONGO_URL='mongodb://$db_user:$db_pwdd@host:27017/$db_name'
@ -159,9 +159,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=2
# Start a systemd service # Start a systemd service
ynh_systemd_action --service_name=$app --action=start --log_path=systemd #--line_match="HTTP Server listening" ynh_systemd_action --service_name=$app --action=start --log_path=systemd #--line_match="HTTP Server listening"
ynh_systemd_action --service_name=mongod --action=start --log_path=systemd
#mongo --eval "printjson(rs.initiate())"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT