Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
b850f520
Commit
b850f520
authored
Nov 21, 2017
by
ThomasKaiser
Browse files
Minor OMV installation tweaks
parent
d8052316
Changes
1
Hide whitespace changes
Inline
Side-by-side
softy
View file @
b850f520
...
...
@@ -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
s
ervice rsyslog status
>/dev/null 2>
&
1
s
ystemctl status rsyslog
>/dev/null 2>
&
1
if [ $? -eq 0 ]; then
echo ':msg, contains, "do ionice -c1" ~' >/etc/rsyslog.d/omv-armbian.conf
s
ervice rsyslog restart
s
ystemctl 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment