File: comitup.postinst

package info (click to toggle)
comitup 1.38-2~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,284 kB
  • sloc: python: 3,042; javascript: 1,261; sh: 98; makefile: 33
file content (24 lines) | stat: -rwxr-xr-x 495 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e

case "$1" in
  configure)
    if [ -e /var/lib/comitup/comitup.json.save ] ; then
      mv -f /var/lib/comitup/comitup.json.save /var/lib/comitup/comitup.json
    fi

    if [ -e /etc/NetworkManager/dnsmasq-shared.d/nm-dns-sabotage.conf ] ; then
      rm -f /etc/NetworkManager/dnsmasq-shared.d/nm-dns-sabotage.conf
    fi

    systemctl unmask comitup
    systemctl enable comitup

    python3 /usr/share/comitup/comitup/wificheck.py || true
    ;;
esac

#DEBHELPER#

exit 0