2 # Upgrading script to AlternC 3.0.3
4 CONFIG_FILE="/usr/lib/alternc/functions.sh"
5 PATH=/sbin:/bin:/usr/sbin:/usr/bin
9 if [ ! -r "$CONFIG_FILE" ]; then
10 echo "Can't access $CONFIG_FILE."
14 if [ `id -u` -ne 0 ]; then
15 echo "$0 must be launched as root"
22 #### Migrate zone file of AlternC 1.0 from old directory
24 # If no old directory, nothing to do here
25 test -d /var/alternc/bind/zones/ || exit 0
27 # Copy file but do not overwrite them
28 cp --no-clobber /var/alternc/bind/zones/* /var/lib/alternc/bind/zones/
30 # No need to regenerate zone, we are launched by upgrade_check,
31 # launched by alternc.install, and alternc.install regenerate everything