mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Fix
This commit is contained in:
parent
be3ca35593
commit
79c1449e3e
3 changed files with 6 additions and 7 deletions
|
@ -101,7 +101,7 @@ ynh_setup_source --dest_dir=$final_path
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:$app "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -145,8 +145,6 @@ ynh_systemd_action --service_name=$mongodb_servicename --action=restart
|
||||||
|
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
#mongo --eval "printjson(rs.initiate())"
|
|
||||||
|
|
||||||
ynh_mongo_exec --command="printjson(rs.initiate())" --eval
|
ynh_mongo_exec --command="printjson(rs.initiate())" --eval
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -65,7 +65,7 @@ ynh_restore_file --origin_path="$final_path"
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:$app "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC RESTORATION
|
# SPECIFIC RESTORATION
|
||||||
|
@ -76,6 +76,7 @@ ynh_script_progression --message="Reinstalling dependencies..." --weight=1
|
||||||
|
|
||||||
# Define and install dependencies
|
# Define and install dependencies
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
ynh_install_mongo
|
ynh_install_mongo
|
||||||
|
|
||||||
|
@ -101,8 +102,6 @@ ynh_systemd_action --service_name=$mongodb_servicename --action=restart
|
||||||
|
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
#mongo --eval "printjson(rs.initiate())"
|
|
||||||
|
|
||||||
ynh_mongo_exec --command="printjson(rs.initiate())" --eval
|
ynh_mongo_exec --command="printjson(rs.initiate())" --eval
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -132,6 +131,8 @@ yunohost service add $app --description="Team collaboration communication platfo
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||||
|
|
||||||
|
# Start a mongod service
|
||||||
|
ynh_exec_warn_less systemctl enable $mongodb_servicename --quiet
|
||||||
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd
|
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -92,7 +92,7 @@ fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:$app "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue