We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76e07e1 commit 30778bbCopy full SHA for 30778bb
1 file changed
install.sh
@@ -116,6 +116,10 @@ function configure_os {
116
if [ ! -n "$max_user_instances" ] || [ 65535 -gt $max_user_instances ] ;then
117
echo 'fs.inotify.max_user_instances = 65535' >> /etc/sysctl.conf 2>/dev/null || true
118
fi
119
+ max_user_watches=$(sysctl -ne fs.inotify.max_user_watches)
120
+ if [ ! -n "$max_user_watches" ] || [ 65535 -gt $max_user_watches ] ;then
121
+ echo 'fs.inotify.max_user_watches = 65535' >> /etc/sysctl.conf 2>/dev/null || true
122
+ fi
123
sysctl -p 2>/dev/null || echo -e "\\033[33m---> Warning: sysctl -p failed, skipping (container environment?)\\033[0m"
124
125
cpufreq=$(ls /sys/devices/system/cpu/cpu*/cpufreq >/dev/null 2>&1 || echo "false")
0 commit comments