X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=e6a7d40bd57f683758f40bff8507e1b0ba8fbf5e;hb=819945e0cd33005247bf74f602a739588cdfbcc7;hp=136ac803e50696b5b038313017222f293acb93aa;hpb=091d70da678f82907b77f20b39c1b7cfe648fe1a;p=apache2-cn.git diff --git a/debian/postinst b/debian/postinst index 136ac80..e6a7d40 100755 --- a/debian/postinst +++ b/debian/postinst @@ -8,7 +8,7 @@ set -e # Load Debconf . /usr/share/debconf/confmodule -# Load CARNet Tools +# Load CARNET Tools . /usr/share/carnet-tools/functions.sh PKG="apache2-cn" @@ -52,7 +52,7 @@ cleanup () { # tag_conf() # -# Add CARNet package info lines to config's header. +# Add CARNET package info lines to config's header. # tag_conf () { local conf_file @@ -60,19 +60,19 @@ tag_conf () { if [ -e "$conf_file" ]; then cat >> $conf_file < 0 - tagged # 1 - not tagged or file does not exists # 2 - file exists, but it is not tagged @@ -83,7 +83,7 @@ chk_conf_tag () { RET=1 if [ -f "$conf_file" ]; then - if egrep -q "^## Begin - Generated by CARNet package apache2-cn$" "$conf_file"; then + if egrep -q "^## Begin - Generated by CARNET package apache2-cn$" "$conf_file"; then RET=0 else RET=2 @@ -133,13 +133,13 @@ install_conf() { conf="$CONFDIR/conf-available/$2.conf" if [ ! -e "$conf" ]; then - cp_echo "CN: Generating CARNet specific configuration." + cp_echo "CN: Generating CARNET specific configuration." cp "$conftmpl" "$conf" else cp_echo "CN: $conf already exists, left untouched." 1>&2 fi - cp_echo "CN: Enabling CARNet specific configuration." + cp_echo "CN: Enabling CARNET specific configuration." a2enconf -m -q "$2" need_restart=1 } @@ -231,7 +231,7 @@ install_vhost() { out=$(mktemp $vhostdir/$venabled.XXXXXX) temp_files="${temp_files} ${out}" - # CARNet header. + # CARNET header. tag_conf "$out" if [ "$add_namevirthost" ]; then @@ -517,7 +517,7 @@ if [ -e "$CONF" ]; then fi -# Install CARNet specific configuration file. +# Install CARNET specific configuration file. # install_conf carnet 000-carnet