From 6e94def372856437d6e2fd6252ae272cc502c87e Mon Sep 17 00:00:00 2001 From: erkin Date: Mon, 20 Nov 2023 06:16:03 +0300 Subject: op-mode: T4038: Remove legacy `vyatta-image-tools.pl` --- templates/clone/system/config/node.def | 1 - templates/clone/system/config/node.tag/from/node.def | 1 - .../system/config/node.tag/from/node.tag/node.def | 18 ------------------ templates/clone/system/config/node.tag/node.def | 14 -------------- templates/clone/system/node.def | 1 - 5 files changed, 35 deletions(-) delete mode 100644 templates/clone/system/config/node.def delete mode 100644 templates/clone/system/config/node.tag/from/node.def delete mode 100644 templates/clone/system/config/node.tag/from/node.tag/node.def delete mode 100644 templates/clone/system/config/node.tag/node.def delete mode 100644 templates/clone/system/node.def (limited to 'templates/clone/system') diff --git a/templates/clone/system/config/node.def b/templates/clone/system/config/node.def deleted file mode 100644 index 0b1b387..0000000 --- a/templates/clone/system/config/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Clone system configuration diff --git a/templates/clone/system/config/node.tag/from/node.def b/templates/clone/system/config/node.tag/from/node.def deleted file mode 100644 index 6c2682c..0000000 --- a/templates/clone/system/config/node.tag/from/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Image to clone from diff --git a/templates/clone/system/config/node.tag/from/node.tag/node.def b/templates/clone/system/config/node.tag/from/node.tag/node.def deleted file mode 100644 index d883c8c..0000000 --- a/templates/clone/system/config/node.tag/from/node.tag/node.def +++ /dev/null @@ -1,18 +0,0 @@ -help: Image to update from -allowed: reply=( $(compgen -d /lib/live/mount/persistence/boot/ | grep -v grub) ) - for i in `seq 0 $[${#reply[@]}-1]`; do - file=${reply[$i]} - reply[$i]=${file/#\/lib\/live\/mount\/persistence\/boot\//} - done - reply+=( "running" ) - if [[ -d /lib/live/mount/persistence/config ]];then - reply+=( "disk-install" ) - fi - echo "${reply[*]}" -run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; - then - sudo ${vyatta_sbindir}/vyatta-image-tools.pl --update $4 $6 - else - echo Must be an admin user to run this command. - fi - diff --git a/templates/clone/system/config/node.tag/node.def b/templates/clone/system/config/node.tag/node.def deleted file mode 100644 index ec82322..0000000 --- a/templates/clone/system/config/node.tag/node.def +++ /dev/null @@ -1,14 +0,0 @@ -help: Image to update -allowed: reply=( $(compgen -d /lib/live/mount/persistence/boot/ | grep -v grub) ) - for i in `seq 0 $[${#reply[@]}-1]`; do - file=${reply[$i]} - reply[$i]=${file/#\/lib\/live\/mount\/persistence\/boot\//} - done - echo "${reply[*]}" -run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; - then - sudo ${vyatta_sbindir}/vyatta-image-tools.pl --updateone $4 - else - echo Must be an admin user to run this command. - fi - diff --git a/templates/clone/system/node.def b/templates/clone/system/node.def deleted file mode 100644 index ea29628..0000000 --- a/templates/clone/system/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Clone a system object -- cgit v1.2.3