From 89430c8b354bef8d3903a287bec744ab89b109ba Mon Sep 17 00:00:00 2001 From: Aaron Murray Date: Wed, 3 Jun 2020 19:34:42 -0500 Subject: [PATCH] use omv_config_update instead of xmlstarlet --- install | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install b/install index a5beabf..03365d1 100755 --- a/install +++ b/install @@ -276,12 +276,12 @@ else fi # change default OMV settings -xmlstarlet ed -L -u "/config/services/smb/extraoptions" -v "$(echo -e "${smbOptions}")" ${OMV_CONFIG_FILE} -xmlstarlet ed -L -u "/config/services/ssh/enable" -v "1" ${OMV_CONFIG_FILE} -xmlstarlet ed -L -u "/config/services/ssh/permitrootlogin" -v "1" ${OMV_CONFIG_FILE} -xmlstarlet ed -L -u "/config/system/time/ntp/enable" -v "1" ${OMV_CONFIG_FILE} -xmlstarlet ed -L -u "/config/system/time/timezone" -v "${tz}" ${OMV_CONFIG_FILE} -xmlstarlet ed -L -u "/config/system/network/dns/hostname" -v "${hostname}" ${OMV_CONFIG_FILE} +omv_config_update "/config/services/smb/extraoptions" "$(echo -e "${smbOptions}")" +omv_config_update "/config/services/ssh/enable" "1" +omv_config_update "/config/services/ssh/permitrootlogin" "1" +omv_config_update "/config/system/time/ntp/enable" "1" +omv_config_update "/config/system/time/timezone" "${tz}" +omv_config_update "/config/system/network/dns/hostname" "${hostname}" # disable monitoring and apply changes /usr/sbin/omv-rpc -u admin "perfstats" "set" '{"enable":false}'