git://git.onelab.eu
/
build.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix sed --in-place (was --inplace)
[build.git]
/
lbuild-initvm.sh
diff --git
a/lbuild-initvm.sh
b/lbuild-initvm.sh
index
04a0607
..
1475cad
100755
(executable)
--- a/
lbuild-initvm.sh
+++ b/
lbuild-initvm.sh
@@
-701,7
+701,7
@@
function post_install () {
function sshd_disable_password_auth () {
lxc=$1; shift
lxc_root=$(lxcroot $lxc)
function sshd_disable_password_auth () {
lxc=$1; shift
lxc_root=$(lxcroot $lxc)
- sed --inplace=.password -e 's,^#\?PasswordAuthentication.*,PasswordAuthentication no,' \
+ sed --in
-
place=.password -e 's,^#\?PasswordAuthentication.*,PasswordAuthentication no,' \
$lxc_root/etc/ssh/sshd_config
}
$lxc_root/etc/ssh/sshd_config
}