Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
Václav Valíček 2022-08-06 02:12:34 +02:00
parent 92bf69f4f3
commit f4ac509665
Signed by: valicek
GPG Key ID: FF05BDCA0C73BB31
2 changed files with 1 additions and 7 deletions

View File

@ -40,12 +40,6 @@ function reuseSSHKey(){
ssh-keygen -y -f $keyfile -P "" || true # will fail in the end, so script will continue and clean up the mess ssh-keygen -y -f $keyfile -P "" || true # will fail in the end, so script will continue and clean up the mess
} }
root=/data/$dir_prefix-$read_project_name
# start generating config
mkdir -p $root/config
createConfigFile $root/config/cloner.cfg
# use ssh config? # use ssh config?
echo -n "Would you like to use SSH auth? ([C]reate new key/[U]se existing key/[N]o) [C/u/n]: " echo -n "Would you like to use SSH auth? ([C]reate new key/[U]se existing key/[N]o) [C/u/n]: "
read read_ssh read read_ssh

View File

@ -75,7 +75,7 @@ def gen_config_file(
log.info("Creating detector.cfg") log.info("Creating detector.cfg")
conf_file = conf_dir.joinpath("detector.cfg") conf_file = conf_dir.joinpath("detector.cfg")
conf_file.write_text( conf_file.write_text(
"# this file is config for detector\n"" "# this file is config for detector\n"
"# now, it is empty - to disable detector, just delete it!\n" "# now, it is empty - to disable detector, just delete it!\n"
) )