Исправлен init.d/calculate для настройки livecd

master-3.5
parent a26ddfc631
commit 3280fab3a6

@ -160,6 +160,11 @@ start() {
/sbin/rc-update --update
rc-update del calculate boot
if ! [[ -f /var/calculate/server/ca/server.key ]]
then
LANG=C /usr/sbin/cl-core --bootstrap
fi
if [[ $roottype == "hdd" ]]
then
/usr/sbin/cl-core --clear-local-cert
@ -171,11 +176,6 @@ start() {
[[ -d "${pkgdir}" ]] && [[ -n "`ls ${pkgdir}`" ]] && rm -r ${pkgdir}/*
[[ -f "${video_script}" ]] && rm -f "${video_script}"
[[ -f "${cache_video}" ]] && rm -f "${cache_video}"
if ! [[ -f /var/calculate/server/ca/server.key ]]
then
LANG=C /usr/sbin/cl-core --bootstrap
fi
fi
else
ewarn "System already configured!"

Loading…
Cancel
Save