Skip to content

Commit 5f2d18b

Browse files
committed
simplify postinst
1 parent c6bcc11 commit 5f2d18b

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Homepage: https://github.com/ipitio/closure
44
Standards-Version: 3.9.2
55

66
Package: closure
7-
Version: 1.6.23
7+
Version: 1.6.24
88
Maintainer: ipitio <[email protected]>
99
Depends: curl, flatpak, gpg, hostapd, isc-dhcp-server, iw, macchanger, netplan.io, network-manager, net-tools, qrencode, rfkill, wireguard, wireless-tools, wget
1010
Recommends: containerd.io, docker-ce, docker-ce-cli, docker-buildx-plugin, docker-compose-plugin

debian/postinst

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22
# shellcheck disable=SC1003
33

44
pushd /opt/closure || exit 1
5-
6-
if [ -f /etc/rc.local ]; then
7-
grep -q '^# closure' /etc/rc.local || cp /etc/rc.local rc.local.bak
8-
else
9-
echo "#\!/bin/bash" | tr -d '\\' | tee /etc/rc.local >/dev/null
10-
fi
11-
12-
grep -q '^# closure' /etc/rc.local || sed 1,1d rc.local | tee -a /etc/rc.local >/dev/null
5+
cp rc.local /etc/rc.local rc.local.bak
136
chmod +x /etc/rc.local
147
[ ! -f /opt/closure/installed ] || rm -rf /opt/closure/installed
158
popd || exit 1

0 commit comments

Comments
 (0)