File: postinst

package info (click to toggle)
jupyterhub 5.2.1%2Bds1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 39,788 kB
  • sloc: python: 33,831; javascript: 13,807; sh: 118; makefile: 35
file content (16 lines) | stat: -rw-r--r-- 439 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e

#DEBHELPER#

if [ "${1}" = "configure" ] && [ ! -z "${2}" ]; then
    if dpkg --compare-versions ${2} le "5.2.1+ds1-4~"; then
        if [ -d /etc/jupyterhub/config/jupyterhub_config.d ]; then
	    rmdir --ignore-fail-on-non-empty -p /etc/jupyterhub/config/jupyterhub_config.d
        fi

        if [ -d /etc/jupyterhub/config ]; then
	    rmdir --ignore-fail-on-non-empty -p /etc/jupyterhub/config
        fi
    fi
fi