diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-13 17:56:37 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-13 17:56:54 +0200 |
commit | e43c3a840b84b316c51989284bd084b4ae1b60b6 (patch) | |
tree | 9d49218975121a3361dc6c4a220e4585d8eab9af /data/live-build-config/hooks | |
parent | 54c79a637636bb6cedc2e3fe8cf7e58b6a29b5cd (diff) | |
download | vyos-build-e43c3a840b84b316c51989284bd084b4ae1b60b6.tar.gz vyos-build-e43c3a840b84b316c51989284bd084b4ae1b60b6.zip |
ddclient: T2185: clean leftover files from base package
Diffstat (limited to 'data/live-build-config/hooks')
-rwxr-xr-x | data/live-build-config/hooks/live/20-rm_ddclient_hook.chroot | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/data/live-build-config/hooks/live/20-rm_ddclient_hook.chroot b/data/live-build-config/hooks/live/20-rm_ddclient_hook.chroot index 173b4e5c..350843c7 100755 --- a/data/live-build-config/hooks/live/20-rm_ddclient_hook.chroot +++ b/data/live-build-config/hooks/live/20-rm_ddclient_hook.chroot @@ -1,3 +1,9 @@ #!/bin/sh -rm -f /etc/dhcp/dhclient-exit-hooks.d/ddclient +if [ -f /etc/dhcp/dhclient-exit-hooks.d/ddclient ]; then + rm -f /etc/dhcp/dhclient-exit-hooks.d/ddclient +fi + +if [ -f /etc/ddclient.conf ]; then + rm -f /etc/ddclient.conf +fi |