Skip to content

Commit

Permalink
nc-ramlogs: limit tmpfs to 100M
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho committed Jan 10, 2018
1 parent 4ba8965 commit cd79cb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/nextcloudpi-config.d/nc-ramlogs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ configure()
}

grep -q "Logs in RAM" /etc/fstab || cat >> /etc/fstab <<EOF
tmpfs /var/log tmpfs defaults,noatime,mode=1777 0 0 # Logs in RAM
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 # /tmp in RAM
tmpfs /var/log tmpfs defaults,noatime,mode=1777,size=100M 0 0 # Logs in RAM
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 # /tmp in RAM
EOF

# unit to recreate required logdirs
Expand Down

0 comments on commit cd79cb3

Please sign in to comment.