projects
/
mod-security-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prva verzija za buster.
[mod-security-cn.git]
/
debian
/
prerm
diff --git
a/debian/prerm
b/debian/prerm
index
2a26bb4
..
2acd7c1
100644
(file)
--- a/
debian/prerm
+++ b/
debian/prerm
@@
-10,7
+10,7
@@
MODSECLNK=/etc/apache2/conf-available/security2-cn.conf
# chk_conf_tag ()
#
# chk_conf_tag ()
#
-# Check if configuration file has CARNet package info lines.
+# Check if configuration file has CARNET package info lines.
# return: $RET => 0 - tagged
# 1 - file does not exists
# 2 - file exists, but it is not tagged
# return: $RET => 0 - tagged
# 1 - file does not exists
# 2 - file exists, but it is not tagged
@@
-21,7
+21,7
@@
chk_conf_tag () {
RET=1
if [ -f "$conf_file" ]; then
RET=1
if [ -f "$conf_file" ]; then
- if egrep -q "^## Begin - Generated by CARNet package mod-security-cn$" "$conf_file"; then
+ if egrep -q "^## Begin - Generated by CARNET package mod-security-cn$" "$conf_file"; then
RET=0
else
RET=2
RET=0
else
RET=2
@@
-55,7
+55,7
@@
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then
rm -f "$MODSECLNK"
fi
rm -f "$MODSECLNK"
fi
- # Remove configuration files generated by this CARNet package.
+ # Remove configuration files generated by this CARNET package.
for mfile in "$MODSECCONF" "$MODSECRBL"; do
chk_conf_tag "$mfile"
if [ $RET -eq 0 ]; then
for mfile in "$MODSECCONF" "$MODSECRBL"; do
chk_conf_tag "$mfile"
if [ $RET -eq 0 ]; then