mirror of
https://github.com/YunoHost-Apps/wekan_ynh.git
synced 2024-09-03 20:36:09 +02:00
adding time for service to start + fix restore
This commit is contained in:
parent
80c6123606
commit
1f7fa01735
3 changed files with 11 additions and 8 deletions
|
@ -155,3 +155,4 @@ systemctl reload nginx
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_systemd_action --action=start --service_name=$app --log_path="systemd" --line_match="Finishing add-custom-html-before-body-end migration"
|
ynh_systemd_action --action=start --service_name=$app --log_path="systemd" --line_match="Finishing add-custom-html-before-body-end migration"
|
||||||
|
sleep 10
|
||||||
|
|
|
@ -32,10 +32,10 @@ port=$(ynh_app_setting_get $app final_path)
|
||||||
# CHECK IF THE APP CAN BE RESTORED
|
# CHECK IF THE APP CAN BE RESTORED
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
yunohost app checkurl "${domain}${path_url}" -a "$app" \
|
ynh_webpath_available $domain $path_url \
|
||||||
|| ynh_die "Path not available: ${domain}${path_url}"
|
|| ynh_die "Path not available: ${domain}${path_url}"
|
||||||
test ! -d $final_path \
|
test ! -d $final_path \
|
||||||
|| ynh_die "There is already a directory: $final_path "
|
|| ynh_die "There is already a directory: $final_path "
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD RESTORE STEPS
|
# STANDARD RESTORE STEPS
|
||||||
|
@ -71,11 +71,11 @@ mongorestore --db $app ./dump/$app
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Install wekan dependencies
|
# Install wekan dependencies
|
||||||
chown -R $app $final_path
|
#chown -R $app $final_path
|
||||||
pushd $final_path/programs/server
|
#pushd $final_path/programs/server
|
||||||
ynh_use_nodejs
|
#ynh_use_nodejs
|
||||||
npm install
|
#npm install
|
||||||
popd
|
#popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
@ -115,3 +115,4 @@ systemctl reload nginx
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_systemd_action --action=start --service_name=$app --log_path="systemd"
|
ynh_systemd_action --action=start --service_name=$app --log_path="systemd"
|
||||||
|
sleep 10
|
||||||
|
|
|
@ -122,3 +122,4 @@ systemctl reload nginx
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_systemd_action --action=start --service_name=$app --log_path="systemd"
|
ynh_systemd_action --action=start --service_name=$app --log_path="systemd"
|
||||||
|
sleep 10
|
||||||
|
|
Loading…
Reference in a new issue