diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-04-06 14:52:18 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-04-09 11:38:46 +0300 |
commit | a9b37ab6c6faf6862e61eaf061349eb2aa805fe7 (patch) | |
tree | e2ba30fb9101d1b2a73997b60e0c4c916253caac /update.sh | |
parent | 7aba9c53037011baeab73dd5036b8420bfac5aa1 (diff) |
nc-automount: remove directories left from unclean shutdownv0.53.26
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -174,6 +174,10 @@ EOF systemctl stop log2ram } + # remove directories left from unclean shutdown + UNIT=/usr/lib/systemd/system/nc-automount.service + grep -q rmdir "$UNIT" || sed -i '/^ExecStart=/iExecStartPre=/bin/bash -c "rmdir /media/* || true"' "$UNIT" + } # end - only live updates exit 0 |