mirror of
https://gitee.com/amber-ce/amber-pm
synced 2026-06-24 23:23:55 +08:00
update: APM upgrade notifier
This commit is contained in:
@@ -6,7 +6,7 @@ After=apt-daily.service network.target network-online.target systemd-networkd.se
|
||||
[Service]
|
||||
Type=simple
|
||||
RemainAfterExit=yes
|
||||
ExecStart=bash -c "apm clean && apm update"
|
||||
ExecStart=amber-pm-upgrade-notifier
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Timer for APM Daily Update
|
||||
|
||||
[Timer]
|
||||
# 开机后第一次执行
|
||||
OnBootSec=1min
|
||||
# 每天执行一次
|
||||
OnUnitActiveSec=1d
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user