]> piware.de Git - bin.git/commitdiff
postinst-setup-ostree: Drop obsolete steps
authorMartin Pitt <martin@piware.de>
Tue, 19 May 2020 05:59:35 +0000 (07:59 +0200)
committerMartin Pitt <martin@piware.de>
Tue, 19 May 2020 05:59:35 +0000 (07:59 +0200)
Not using mock any more, and backup is now triggered by systemd timer.

postinst-setup-ostree

index afb1422e30c665ddcfe6a5aead5c32c74acda459..b05a19838072ac6161b89e4530fe4ca7d261e12a 100755 (executable)
@@ -1,18 +1,7 @@
 #!/bin/sh
 set -ex
 
-# create user
-if ! grep -q ^mock: /etc/group; then
-    getent group mock | sed 's/$/martin/' >> /etc/group
-fi
-
-# copy back NM connections and fix SELinux context
+# copy NM connections and fix SELinux context
 cp /home/martin/archiv/system-config/* /etc/
 chcon -R -t NetworkManager_etc_t -u system_u /etc/NetworkManager
 chcon -R -t NetworkManager_etc_rw_t -u system_u /etc/NetworkManager/NetworkManager.conf /etc/NetworkManager/system-connections
-
-# crontabs
-crontab -u martin - <<EOF
-# m h  dom mon dow   command
-05 * * * * \$HOME/bin/backup >/dev/null
-EOF