evobackupctl: change option name
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
All checks were successful
gitea/evobackup/pipeline/head This commit looks good
This commit is contained in:
parent
d9674acff0
commit
2cf8264127
|
@ -31,12 +31,12 @@ ${PROGNAME} helps managing evobackup scripts
|
||||||
Options
|
Options
|
||||||
-h, --help print this message and exit
|
-h, --help print this message and exit
|
||||||
-V, --version print version 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
|
--copy-template=PATH copy the backup template to PATH
|
||||||
END
|
END
|
||||||
}
|
}
|
||||||
|
|
||||||
init_jail_commands() {
|
jail_init_commands() {
|
||||||
if [ ! -f /root/.ssh/id_ed25519.pub ]; then
|
if [ ! -f /root/.ssh/id_ed25519.pub ]; then
|
||||||
ssh-keygen -t ed25519 -f /root/.ssh/id_ed25519 -N ''
|
ssh-keygen -t ed25519 -f /root/.ssh/id_ed25519 -N ''
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -107,8 +107,8 @@ main() {
|
||||||
show_help
|
show_help
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
--init-jail-commands)
|
--jail-init-commands)
|
||||||
init_jail_commands
|
jail_init_commands
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
--copy-template)
|
--copy-template)
|
||||||
|
|
Loading…
Reference in a new issue