Skip to content

Commit

Permalink
[debian]: Add fstrim service files to systemd (#1500)
Browse files Browse the repository at this point in the history
  • Loading branch information
padmanarayana authored and Shuotian Cheng committed Mar 15, 2018
1 parent f306dd3 commit 3bb24a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ sudo augtool --autosave "set /files/etc/ssh/sshd_config/UseDNS no" -r $FILESYSTE
sudo sed -i 's/^ListenAddress ::/#ListenAddress ::/' $FILESYSTEM_ROOT/etc/ssh/sshd_config
sudo sed -i 's/^#ListenAddress 0.0.0.0/ListenAddress 0.0.0.0/' $FILESYSTEM_ROOT/etc/ssh/sshd_config

## Copy fstrim service
sudo cp $FILESYSTEM_ROOT/usr/share/doc/util-linux/examples/fstrim.{service,timer} $FILESYSTEM_ROOT/etc/systemd/system

## Config monit
sudo sed -i '
s/^# set logfile syslog/set logfile syslog/;
Expand Down

0 comments on commit 3bb24a9

Please sign in to comment.