aboutsummaryrefslogtreecommitdiffstats
path: root/add-service
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2012-09-30 14:18:41 +0000
committerColin Guthrie <colin@mageia.org>2012-09-30 14:18:41 +0000
commitf2f4d7a7eef3271592381b9383708a8a4633053a (patch)
tree3638b4d4c973e04a06d9ed7c4b7df2e78c28d51d /add-service
parent635a4c96fbe1f5dff51bf15fc444d3ab18519287 (diff)
downloadrpm-helper-f2f4d7a7eef3271592381b9383708a8a4633053a.tar
rpm-helper-f2f4d7a7eef3271592381b9383708a8a4633053a.tar.gz
rpm-helper-f2f4d7a7eef3271592381b9383708a8a4633053a.tar.bz2
rpm-helper-f2f4d7a7eef3271592381b9383708a8a4633053a.tar.xz
rpm-helper-f2f4d7a7eef3271592381b9383708a8a4633053a.zip
Mark a fresh install of a systemd service as 'migrated' to avoid subsequent checks on upgrade.
Diffstat (limited to 'add-service')
-rwxr-xr-xadd-service3
1 files changed, 3 insertions, 0 deletions
diff --git a/add-service b/add-service
index 0c0a887..dc09cb7 100755
--- a/add-service
+++ b/add-service
@@ -135,6 +135,9 @@ add_service() {
# Actually do enable/disable foo
if [ -n "$units_to_enable" ]; then
/bin/systemctl --quiet enable $units_to_enable >/dev/null
+ if [ -n "$srv" -a ! -f "${systemd_migration_dir}/$srv" ]; then
+ touch "${systemd_migration_dir}/$srv"
+ fi
fi
# When no native systemd unit exists, the above command will actually