mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Update install
This commit is contained in:
parent
dae3d7c431
commit
1bb34d09cb
1 changed files with 12 additions and 9 deletions
|
@ -123,15 +123,6 @@ pushd $final_path/programs/server
|
||||||
ynh_exec_as $app env $ynh_node_load_PATH npm install 2>/dev/null
|
ynh_exec_as $app env $ynh_node_load_PATH npm install 2>/dev/null
|
||||||
popd
|
popd
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SETUP SYSTEMD
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
|
||||||
|
|
||||||
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
|
|
||||||
|
|
||||||
ynh_add_systemd_config
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -141,10 +132,22 @@ sed -i "s/^# engine:/ engine: wiredTiger/" /etc/mongod.conf
|
||||||
sed -i "s/^#replication:/replication:\n replSetName: rs01/" /etc/mongod.conf
|
sed -i "s/^#replication:/replication:\n replSetName: rs01/" /etc/mongod.conf
|
||||||
#echo -e "replication:\n replSetName: \"rs01\"" | tee -a /etc/mongod.conf
|
#echo -e "replication:\n replSetName: \"rs01\"" | tee -a /etc/mongod.conf
|
||||||
|
|
||||||
|
ynh_exec_warn_less systemctl enable mongod --quiet
|
||||||
|
ynh_systemd_action --service_name=mongod --action=restart
|
||||||
|
|
||||||
mongo --eval "printjson(rs.initiate())"
|
mongo --eval "printjson(rs.initiate())"
|
||||||
|
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# SETUP SYSTEMD
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||||
|
|
||||||
|
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
|
||||||
|
|
||||||
|
ynh_add_systemd_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue