Reportrancid-cgipreinst

Status: Accepted

Colis script


begin
  true ;
  if [ [ '-h'; '/etc/rancid/lg.conf'; ']' ] then rm [ '/etc/rancid/lg.conf' ]
  fi ;
  if [ [ '-e'; '/etc/rancid/apache.conf'; ']' ]
  then rm [ '/etc/rancid/apache.conf' ] fi ;
  exit success
end

Original Shell script

#! /bin/sh
# preinst script for rancid
#
# see: dh_installdeb(1)

set -e

# To remove old bad env link
if [ -h /etc/rancid/lg.conf ]; then
	rm /etc/rancid/lg.conf
fi
if [ -e /etc/rancid/apache.conf ]; then
	rm /etc/rancid/apache.conf
fi


# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.



exit 0