script fixes

This commit is contained in:
Salamandar 2020-05-29 14:44:04 +02:00
parent 252d0fd502
commit 652ce7a633

View file

@ -119,14 +119,16 @@ function main()
step clean_image || die "Unable to clean image" step clean_image || die "Unable to clean image"
fi fi
if is_raspbian ; then
# Reboot should be done before postinstall to be able to run iptables rules
reboot
fi
info "Installation logs are available in $YUNOHOST_LOG" info "Installation logs are available in $YUNOHOST_LOG"
success "YunoHost installation completed !" success "YunoHost installation completed !"
conclusion conclusion
if is_raspbian ; then
# Reboot should be done before postinstall to be able to run iptables rules
info "Your server will now reboot. Please log back in as root and run the post-install."
reboot
fi
exit 0 exit 0
} }
@ -512,10 +514,12 @@ function install_yunohost_packages() {
} }
function restart_services() { function restart_services() {
service slapd restart systemctl daemon-reload
# service yunohost-firewall start
service unscd restart systemctl restart slapd
service nslcd restart # systemctl restart yunohost-firewall
systemctl restart unscd
systemctl restart nslcd
# NOTE : We don't fail if slapd fails to restart... # NOTE : We don't fail if slapd fails to restart...
return 0 return 0