File: ftp-proxy.preinst

package info (click to toggle)
proxy-suite 1.9.2.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,420 kB
  • ctags: 436
  • sloc: ansic: 6,530; sh: 2,955; makefile: 341
file content (23 lines) | stat: -rw-r--r-- 442 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh -e

movecfgfile () {
  if [ -e "/etc/$1" ] ; then
    echo -n "Moving $1"
    mv "/etc/$1" "/etc/proxy-suite/"
    echo
  fi
}

# If we are upgrading we might need to move configfiles
if [ "$1" = "upgrade" ] ;  then
  if [ ! -d /etc/proxy-suite ] ; then
    echo "Moving configuration files to /etc/proxy-suite."
    mkdir /etc/proxy-suite
    chmod 755 /etc/proxy-suite
    movecfgfile ftp-proxy.conf
  fi
fi

#DEBHELPER#

exit 0