@@ -109,14 +109,17 @@ if [ "$update" = 'yes' ] && [ "$restart" != 'no' ]; then
fi
- $BIN/v-restart-service "$service" > /dev/null 2>&1
-
- if [ $? -ne 0 ]; then
- for config in $dst; do
- cat "$config.vst.back" > "$config"
- rm -f "$config.vst.back"
- done
- check_result "$E_RESTART" "ERROR: $service failed to start with new configuration."
+ if [[ "$service" != "hestiaweb" ]]; then
+ $BIN/v-restart-service "$service" > /dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ for config in $dst; do
+ cat "$config.vst.back" > "$config"
+ rm -f "$config.vst.back"
+ done
+ check_result "$E_RESTART" "ERROR: $service failed to start with new configuration."
+ fi
+ else
@@ -20,7 +20,7 @@ if (!empty($_POST["save"])) {
fwrite($fp, str_replace("\r\n", "\n", $_POST["v_config"]));
fclose($fp);
exec(
- HESTIA_CMD . "v-change-sys-service-config " . $new_conf . " hestiaweb no",
+ HESTIA_CMD . "v-change-sys-service-config " . $new_conf . " hestiaweb yes",
$output,
$return_var,
);