projects
/
openssh-cn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b599e7d
)
r2:
author
Ivan Rako
<Ivan.Rako@CARNet.hr>
Tue, 18 Sep 2007 14:07:37 +0000
(14:07 +0000)
committer
Ivan Rako
<Ivan.Rako@CARNet.hr>
Tue, 18 Sep 2007 14:07:37 +0000
(14:07 +0000)
debian/postinst
patch
|
blob
|
history
diff --git
a/debian/postinst
b/debian/postinst
index
1e68c7e
..
9f457b5
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-3,16
+3,18
@@
set -e
[ "$1" = "configure" ] || exit 0
set -e
[ "$1" = "configure" ] || exit 0
+# Load CARNet Tools
. /usr/share/carnet-tools/functions.sh
. /usr/share/carnet-tools/functions.sh
+
if [ -f /etc/ssh/sshd_config ]; then
if [ -f /etc/ssh/sshd_config ]; then
- check_and_sed '^PermitRootLogin yes' \
- 's/PermitRootLogin yes/PermitRootLogin no/g' \
- /etc/ssh/sshd_config || true
+ cp_check_and_sed '^PermitRootLogin yes' \
+ 's/PermitRootLogin yes/PermitRootLogin no/g' \
+ /etc/ssh/sshd_config || true
- check_and_sed '^ReverseMappingCheck' \
- 's/^ReverseMappingCheck/#ReverseMappingCheck/g' \
- /etc/ssh/sshd_config || true
+ cp_check_and_sed '^ReverseMappingCheck' \
+ 's/^ReverseMappingCheck/#ReverseMappingCheck/g' \
+ /etc/ssh/sshd_config || true
fi
# restart
fi
# restart