@@ -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
|
||||
}
|
||||
|
||||
|
||||
root=/data/$dir_prefix-$read_project_name
|
||||
# start generating config
|
||||
mkdir -p $root/config
|
||||
createConfigFile $root/config/cloner.cfg
|
||||
|
||||
# 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]: "
|
||||
read read_ssh
|
||||
|
||||
@@ -75,7 +75,7 @@ def gen_config_file(
|
||||
log.info("Creating detector.cfg")
|
||||
conf_file = conf_dir.joinpath("detector.cfg")
|
||||
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"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user