latest progress
This commit is contained in:
parent
845a6286a8
commit
94e77b5ebf
@ -34,9 +34,13 @@ vars+=(LIBPATH)
|
||||
|
||||
if [[ $DEBUG -gt 0 ]]; then
|
||||
cp="/bin/cp -v"
|
||||
mkdir="/bin/mkdir -v"
|
||||
else
|
||||
cp="/bin/cp"
|
||||
mkdir="/bin/mkdir"
|
||||
setopt pushdsilent
|
||||
fi
|
||||
|
||||
sudo="sudo -E"
|
||||
|
||||
act "libdevuansdk v$libdevuansdk_version loaded"
|
||||
|
@ -172,21 +172,6 @@ EOF
|
||||
chroot-script disserv
|
||||
}
|
||||
|
||||
enablessh() {
|
||||
fn enablessh
|
||||
req=(strapdir)
|
||||
ckreq || return 1
|
||||
|
||||
# "hardened" ssh
|
||||
#sudo -E sed -i $strapdir/etc/sshd_config \
|
||||
#-e 's/PermitRootLogin .*/PermitRootLogin yes/' \
|
||||
#-e 's/HostKey .*dsa_key/#&/' \
|
||||
#-e 's/X11Forwarding .*/X11Forwarding no/' \
|
||||
#-e 's/UsePAM .*/UsePAM no/'
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
install-custdebs() {
|
||||
fn install-custdebs
|
||||
req=(R strapdir)
|
||||
|
@ -137,25 +137,3 @@ export LANG=C
|
||||
export LC_ALL=C
|
||||
EOF
|
||||
}
|
||||
|
||||
conf_print_rclocal() {
|
||||
fn conf_print_rclocal
|
||||
|
||||
cat <<EOF
|
||||
#!/bin/sh -e
|
||||
#
|
||||
# rc.local
|
||||
#
|
||||
# This script is executed at the end of each multiuser runlevel.
|
||||
# Make sure that the script will "exit 0" on success or any other
|
||||
# value on error.
|
||||
#
|
||||
# In order to enable or disable this script just change the execution
|
||||
# bits.
|
||||
|
||||
## regen ssh keys on first boot
|
||||
[ -f /etc/ssh/ssh_host_rsa_key.pub ] || dpkg-reconfigure openssh-server
|
||||
|
||||
exit 0
|
||||
EOF
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user