set -e
-[ "$1" = "configure" ] || exit 0
-
# Load debconf
. /usr/share/debconf/confmodule
db_version 2.0
-
-while true; do
- db_fset carnet-debian/packages seen false
- db_go || true
- db_input critical carnet-debian/packages || true
- db_go || true
-
- db_get carnet-debian/packages
- packages="$RET"
- if echo $packages | grep -q vsftpd-cn; then
- vsftpd="yes"
- else
- vsftpd="no"
- fi
-
- if echo $packages | grep -q proftpd-cn; then
- proftpd="yes"
- else
- proftpd="no"
- fi
-
- if [ "$proftpd" = "yes" -a "$vsftpd" = "yes" ]; then
- db_fset carnet-debian/ftpd seen false
- db_go || true
- db_input critical carnet-debian/ftpd || true
- else
- break
- fi
-done
-
-db_fset carnet-debian/note seen false
-db_go || true
-db_input critical carnet-debian/note || true
-
-db_go || true
-db_stop || true
--- /dev/null
+#!/bin/sh
+
+set -e
+
+[ "$1" = "configure" ] || exit 0
+
+# Load debconf
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+while true; do
+ db_fset carnet-debian/packages seen false
+ db_go || true
+ db_input critical carnet-debian/packages || true
+ db_go || true
+
+ db_get carnet-debian/packages
+ packages="$RET"
+ if echo $packages | grep -q vsftpd-cn; then
+ vsftpd="yes"
+ else
+ vsftpd="no"
+ fi
+
+ if echo $packages | grep -q proftpd-cn; then
+ proftpd="yes"
+ else
+ proftpd="no"
+ fi
+
+ if [ "$proftpd" = "yes" -a "$vsftpd" = "yes" ]; then
+ db_fset carnet-debian/ftpd seen false
+ db_go || true
+ db_input critical carnet-debian/ftpd || true
+ else
+ break
+ fi
+done
+
+db_fset carnet-debian/note seen false
+db_go || true
+db_input critical carnet-debian/note || true
+
+db_go || true
+db_stop || true