Commit b850f520 authored by ThomasKaiser's avatar ThomasKaiser
Browse files

Minor OMV installation tweaks

parent d8052316
......@@ -390,11 +390,7 @@ xmlstarlet ed -L -u "/config/system/network/dns/hostname" -v "${HOSTNAME}" ${OMV
/usr/sbin/omv-rpc -u admin "perfstats" "set" '{"enable":false}'
/usr/sbin/omv-rpc -u admin "config" "applyChanges" '{ "modules": ["monit","rrdcached","collectd"],"force": true }'
sed -i 's|-j /var/lib/rrdcached/journal/ ||' /etc/init.d/rrdcached
for i in netatalk samba flashmemory ssh ntp timezone monit rrdcached collectd ; do
/usr/sbin/omv-mkconf $i
done
systemctl disable log2ram
rm /etc/cron.daily/log2ram
systemctl status log2ram >/dev/null 2>&1 && (systemctl disable log2ram ; rm /etc/cron.daily/log2ram)
/sbin/folder2ram -enablesystemd 2>/dev/null
# Prevent accidentally destroying board performance by clicking around in OMV UI since
......@@ -412,6 +408,9 @@ fi
echo -e "OMV_CPUFREQUTILS_GOVERNOR=${GOVERNOR}" >>/etc/default/openmediavault
echo -e "OMV_CPUFREQUTILS_MINSPEED=${MIN_SPEED}" >>/etc/default/openmediavault
echo -e "OMV_CPUFREQUTILS_MAXSPEED=${MAX_SPEED}" >>/etc/default/openmediavault
for i in netatalk samba flashmemory ssh ntp timezone monit rrdcached collectd cpufrequtils ; do
/usr/sbin/omv-mkconf $i
done
# Hardkernel Cloudshell 1 and 2 fixes, read the whole thread for details:
# https://forum.openmediavault.org/index.php/Thread/17855
......@@ -432,10 +431,10 @@ if [ "X${BOARD}" = "Xodroidxu4" ]; then
fi
# Add a cron job to make NAS processes more snappy
service rsyslog status >/dev/null 2>&1
systemctl status rsyslog >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo ':msg, contains, "do ionice -c1" ~' >/etc/rsyslog.d/omv-armbian.conf
service rsyslog restart
systemctl restart rsyslog
fi
echo "* * * * * root for i in \`pgrep \"ftpd|nfsiod|smbd|afpd|cnid\"\` ; do ionice -c1 -p \$i ${HMP_Fix}; done >/dev/null 2>&1" >/etc/cron.d/make_nas_processes_faster
chmod 600 /etc/cron.d/make_nas_processes_faster
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment