parent
ec143dda02
commit
451ed4c369
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
# Create AlternC Panel user for web server
|
# Create AlternC Panel user for web server
|
||||||
|
@ -64,6 +63,15 @@ case "$1" in
|
||||||
echo "/etc/bind/master was not empty. Please remove it manually."
|
echo "/etc/bind/master was not empty. Please remove it manually."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if dpkg --compare-versions "$2" lt "3.3.12"; then
|
||||||
|
db_input high alternc/confirm_unsupported_upgrade
|
||||||
|
db_go
|
||||||
|
db_get alternc/confirm_unsupported_upgrade
|
||||||
|
if [ "$RET" == "false" ] ; then
|
||||||
|
echo "User chose to abort installation" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
abort-upgrade)
|
abort-upgrade)
|
||||||
|
|
|
@ -264,3 +264,12 @@ _Description: Remote mysql: connection error
|
||||||
.
|
.
|
||||||
This is a fatal error and will cause the package installation
|
This is a fatal error and will cause the package installation
|
||||||
to fail.
|
to fail.
|
||||||
|
|
||||||
|
Template: alternc/confirm_unsupported_upgrade
|
||||||
|
Type: boolean
|
||||||
|
_Description: This upgrade may incur data loss. Continue anyway?
|
||||||
|
When upgrading from AlternC < 3.3.12 to AlternC 3.5, sub domains
|
||||||
|
with SSL will be lost. It is recommended to upgrade to 3.3.12
|
||||||
|
before upgrading to 3.5.
|
||||||
|
.
|
||||||
|
If you chose to not continue, this package installation will fail.
|
Loading…
Reference in New Issue