mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-09-02 19:51:30 +00:00
aws, azure, ciao-networking, cloud, containers, gce, and hyperv image descriptors. Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
28 lines
388 B
Bash
Executable File
28 lines
388 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Root login must bedisabled aws images
|
|
|
|
usage() {
|
|
echo "usage: $0 [chrootpath]"
|
|
echo "Provide path to existing chroot"
|
|
exit 1
|
|
}
|
|
|
|
|
|
main() {
|
|
local CHROOTPATH=$1
|
|
sudo mkdir -p ${CHROOTPATH}/etc/ssh/
|
|
sudo echo "PermitRootLogin no" >> ${CHROOTPATH}/etc/ssh/sshd_config
|
|
|
|
}
|
|
|
|
if [ $# -eq 0 ]; then
|
|
usage
|
|
fi
|
|
|
|
if [ ! -d "$1" ]; then
|
|
usage
|
|
fi
|
|
|
|
main $@
|