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-21 13:13:26 +02:00
parent d9f3994e14
commit de22cc744e
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 5 additions and 7 deletions

View file

@ -141,8 +141,8 @@ 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_exec_warn_less systemctl enable $mongodb_servicename --quiet
ynh_systemd_action --service_name=mongod --action=restart ynh_systemd_action --service_name=$mongodb_servicename --action=restart
mongo --eval "printjson(rs.initiate())" mongo --eval "printjson(rs.initiate())"
@ -161,10 +161,8 @@ yunohost service add $app --description="Team collaboration communication platfo
ynh_script_progression --message="Starting a MongoDB service..." --weight=2 ynh_script_progression --message="Starting a MongoDB service..." --weight=2
# Start a mongod service # Start a mongod service
ynh_exec_warn_less systemctl enable mongod --quiet ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet
ynh_systemd_action --service_name=mongod --action=restart ynh_systemd_action --service_name=$mongodb_servicename --action=restart
#mongo --eval "printjson(rs.initiate())"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE

View file

@ -153,7 +153,7 @@ yunohost service add $app --description="Team collaboration communication platfo
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=10 ynh_script_progression --message="Starting a systemd service..." --weight=10
ynh_systemd_action --service_name=mongod --action=restart --log_path=systemd ynh_systemd_action --service_name=$mongodb_servicename --action=restart --log_path=systemd
ynh_systemd_action --service_name=$app --action=start --log_path="/var/log/$app/$app.log" ynh_systemd_action --service_name=$app --action=start --log_path="/var/log/$app/$app.log"
#================================================= #=================================================