diff options
Diffstat (limited to 'uau.install')
-rw-r--r-- | uau.install | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/uau.install b/uau.install index 3fd20a10d321..c73ec6f405cd 100644 --- a/uau.install +++ b/uau.install @@ -1,4 +1,3 @@ - post_install() { . /etc/unattended-arch-upgrade.conf @@ -6,15 +5,10 @@ post_install() { # no account expiry, never set to inactive, no password expiry chage -E -1 -I -1 -m -1 -M -1 $UPDATEUSER - # install archnews and ensure it is a supported version - mkdir $ANEWSDIR - git clone $GITANEWS $ANEWSDIR - cd $ANEWSDIR - git checkout $ANEWREL - systemctl enable unattended-arch-upgrade.timer systemctl start unattended-arch-upgrade.timer systemctl list-timers unattended-arch-upgrade.timer + systemctl daemon-reload sed -i '/\[options\]/a Include=/etc/unattended-arch-upgrade.ignore' $PACCONF @@ -24,6 +18,10 @@ post_install() { chmod 644 /etc/cron.d/archnews } +post_upgrade(){ + systemctl daemon-reload +} + pre_remove() { . /etc/unattended-arch-upgrade.conf |