This repository has been archived by the owner on May 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some more lintian fixes
- Loading branch information
Showing
6 changed files
with
31 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,7 @@ | ||
#!/bin/bash | ||
|
||
shell_pid=$(ps -o ppid= -p $PPID) | ||
shell_pid=${shell_pid#" "} | ||
|
||
initiator_pid="$(ps -o ppid= -p $shell_pid)" | ||
initiator_pid=${initiator_pid#" "} | ||
|
||
initiator_cmdline="$(tr -d '\0' </proc/$initiator_pid/cmdline)" | ||
|
||
# Start aktualizr only if we install this package not from itself. | ||
if [[ "$initiator_cmdline" != /usr/bin/aktualizr* ]]; then | ||
systemctl enable aktualizr || true | ||
systemctl start aktualizr || true | ||
else | ||
touch "/tmp/aktualizr_reboot_flag" | ||
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then | ||
deb-systemd-helper unmask 'aktualizr.service' >/dev/null || true | ||
deb-systemd-helper update-state 'aktualizr.service' >/dev/null || true | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [ -d /run/systemd/system ]; then | ||
systemctl --system daemon-reload > /dev/null || true | ||
fi | ||
|
||
if [ "$1" = "remove" ]; then | ||
if [ -x "/usr/bin/deb-systemd-helper" ]; then | ||
deb-systemd-helper mask 'aktualizr.service' >/dev/null || true | ||
fi | ||
fi | ||
|
||
if [ "$1" = "purge" ]; then | ||
if [ -x "/usr/bin/deb-systemd-helper" ]; then | ||
deb-systemd-helper purge 'aktualizr.service' >/dev/null || true | ||
deb-systemd-helper unmask 'aktualizr.service' >/dev/null || true | ||
fi | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
#!/bin/bash | ||
|
||
shell_pid=$(ps -o ppid= -p $PPID) | ||
shell_pid=${shell_pid#" "} | ||
set -e | ||
|
||
initiator_pid="$(ps -o ppid= -p $shell_pid)" | ||
initiator_pid=${initiator_pid#" "} | ||
|
||
initiator_cmdline="$(tr -d '\0' </proc/$initiator_pid/cmdline)" | ||
|
||
# Stop aktualizr only if we install this package not from itself. | ||
if [[ "$initiator_cmdline" != /usr/bin/aktualizr* ]]; then | ||
systemctl stop aktualizr || true | ||
systemctl disable aktualizr || true | ||
if [ "$1" = "remove" ]; then | ||
if [ -x "/usr/bin/deb-systemd-helper" ]; then | ||
deb-systemd-helper stop 'aktualizr.service' >/dev/null || true | ||
fi | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters