Skip to content

Commit

Permalink
Fixes #31393 - Drop foreman-proxy sysvinit scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Nov 27, 2020
1 parent 9eaeaa4 commit 2f74147
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 368 deletions.
6 changes: 0 additions & 6 deletions debian/bionic/foreman-proxy/default

This file was deleted.

176 changes: 0 additions & 176 deletions debian/bionic/foreman-proxy/foreman-proxy.init

This file was deleted.

5 changes: 5 additions & 0 deletions debian/bionic/foreman-proxy/foreman-proxy.preinst
@@ -0,0 +1,5 @@
#!/bin/sh
dpkg-maintscript-helper rm_conffile /etc/init.d/foreman-proxy 2.4.0~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/default/foreman-proxy 2.4.0~ -- "$@"

#DEBHELPER#
2 changes: 0 additions & 2 deletions debian/bionic/foreman-proxy/logrotate
Expand Up @@ -11,8 +11,6 @@
postrotate
if [ -d /run/systemd/system ] ; then
/bin/systemctl kill --signal=SIGUSR1 --kill-who=main foreman-proxy >/dev/null 2>&1 || true
elif [ -e /etc/init.d/foreman-proxy ] ; then
/etc/init.d/foreman-proxy logrotate >/dev/null 2>&1 || true
fi
endscript
}
6 changes: 0 additions & 6 deletions debian/buster/foreman-proxy/default

This file was deleted.

176 changes: 0 additions & 176 deletions debian/buster/foreman-proxy/foreman-proxy.init

This file was deleted.

5 changes: 5 additions & 0 deletions debian/buster/foreman-proxy/foreman-proxy.preinst
@@ -0,0 +1,5 @@
#!/bin/sh
dpkg-maintscript-helper rm_conffile /etc/init.d/foreman-proxy 2.4.0~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/default/foreman-proxy 2.4.0~ -- "$@"

#DEBHELPER#
2 changes: 0 additions & 2 deletions debian/buster/foreman-proxy/logrotate
Expand Up @@ -11,8 +11,6 @@
postrotate
if [ -d /run/systemd/system ] ; then
/bin/systemctl kill --signal=SIGUSR1 --kill-who=main foreman-proxy >/dev/null 2>&1 || true
elif [ -e /etc/init.d/foreman-proxy ] ; then
/etc/init.d/foreman-proxy logrotate >/dev/null 2>&1 || true
fi
endscript
}

0 comments on commit 2f74147

Please sign in to comment.