diff --git a/usr/lib/lib/systemd/system/akshara-update-cleanup.service b/usr/lib/lib/systemd/system/akshara-update-cleanup.service new file mode 100644 index 0000000..0281199 --- /dev/null +++ b/usr/lib/lib/systemd/system/akshara-update-cleanup.service @@ -0,0 +1,12 @@ +[Unit] +Description=Clean-up following system update +StartLimitIntervalSec=0 + +[Service] +Type=simple +Restart=no +User=root +ExecStart=/usr/bin/find / -maxdepth 1 -type d -name '.old.*' -exec /usr/bin/rm -rf -- {} + + +[Install] +WantedBy=multi-user.target diff --git a/usr/lib/lib/systemd/user/akshara-update-check.service b/usr/lib/lib/systemd/user/akshara-update-check.service new file mode 100644 index 0000000..b48496c --- /dev/null +++ b/usr/lib/lib/systemd/user/akshara-update-check.service @@ -0,0 +1,8 @@ +[Unit] +Description=System updates + +[Service] +ExecStart=/usr/bin/system update-check + +[Install] +WantedBy=default.target