diff options
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-ramlogs.sh')
-rwxr-xr-x | etc/nextcloudpi-config.d/nc-ramlogs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/nextcloudpi-config.d/nc-ramlogs.sh b/etc/nextcloudpi-config.d/nc-ramlogs.sh index e90531d6..218ea3e0 100755 --- a/etc/nextcloudpi-config.d/nc-ramlogs.sh +++ b/etc/nextcloudpi-config.d/nc-ramlogs.sh @@ -35,7 +35,7 @@ EOF local HTTPUNIT=/etc/systemd/system/multi-user.target.wants/apache2.service grep -q mkdir /etc/init.d/mysql || sed -i "/\<start)/amkdir -p /var/log/mysql" /etc/init.d/mysql grep -q mkdir /etc/init.d/apache2 || sed -i "/\<start)/amkdir -p /var/log/apache2" /etc/init.d/apache2 - grep -q mkdir $HTTPUNIT || sed -i "ExecStartPre=/bin/mkdir -p /var/log/apache2" $HTTPUNIT + grep -q mkdir $HTTPUNIT || sed -i "/ExecStart/iExecStartPre=/bin/mkdir -p /var/log/apache2" $HTTPUNIT grep -q vm.swappiness /etc/sysctl.conf || echo "vm.swappiness = 10" >> /etc/sysctl.conf && sysctl --load echo "Logs in RAM. Reboot for changes to take effect" |