evobackupctl: change option name
All checks were successful
gitea/evobackup/pipeline/head This commit looks good

This commit is contained in:
Jérémy Lecour 2024-04-29 17:52:35 +02:00 committed by Jérémy Lecour
parent d9674acff0
commit 2cf8264127
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY

View file

@ -31,12 +31,12 @@ ${PROGNAME} helps managing evobackup scripts
Options
-h, --help print this message and exit
-V, --version print version and exit
--init-jail-commands print jail init commands
--jail-init-commands print jail init commands
--copy-template=PATH copy the backup template to PATH
END
}
init_jail_commands() {
jail_init_commands() {
if [ ! -f /root/.ssh/id_ed25519.pub ]; then
ssh-keygen -t ed25519 -f /root/.ssh/id_ed25519 -N ''
echo ""
@ -107,8 +107,8 @@ main() {
show_help
exit 0
;;
--init-jail-commands)
init_jail_commands
--jail-init-commands)
jail_init_commands
exit 0
;;
--copy-template)