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/node.def | 1 - 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 - templates/copy/file/node.def | 1 - templates/copy/file/node.tag/node.def | 3 --- templates/copy/file/node.tag/to/node.def | 1 - templates/copy/file/node.tag/to/node.tag/node.def | 10 ---------- templates/copy/node.def | 1 - templates/delete/file/node.def | 1 - templates/delete/file/node.tag/node.def | 10 ---------- templates/show/file/node.def | 1 - templates/show/file/node.tag/node.def | 10 ---------- 15 files changed, 74 deletions(-) delete mode 100644 templates/clone/node.def 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 delete mode 100644 templates/copy/file/node.def delete mode 100644 templates/copy/file/node.tag/node.def delete mode 100644 templates/copy/file/node.tag/to/node.def delete mode 100644 templates/copy/file/node.tag/to/node.tag/node.def delete mode 100644 templates/copy/node.def delete mode 100644 templates/delete/file/node.def delete mode 100644 templates/delete/file/node.tag/node.def delete mode 100644 templates/show/file/node.def delete mode 100644 templates/show/file/node.tag/node.def (limited to 'templates') diff --git a/templates/clone/node.def b/templates/clone/node.def deleted file mode 100644 index 25c577a..0000000 --- a/templates/clone/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Clone an object 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 diff --git a/templates/copy/file/node.def b/templates/copy/file/node.def deleted file mode 100644 index e1b2447..0000000 --- a/templates/copy/file/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Copy files diff --git a/templates/copy/file/node.tag/node.def b/templates/copy/file/node.tag/node.def deleted file mode 100644 index 50b9153..0000000 --- a/templates/copy/file/node.tag/node.def +++ /dev/null @@ -1,3 +0,0 @@ -help: Copy files from specified source -comptype: imagefiles -allowed: echo -n "" diff --git a/templates/copy/file/node.tag/to/node.def b/templates/copy/file/node.tag/to/node.def deleted file mode 100644 index 21f3ade..0000000 --- a/templates/copy/file/node.tag/to/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Path to copy into diff --git a/templates/copy/file/node.tag/to/node.tag/node.def b/templates/copy/file/node.tag/to/node.tag/node.def deleted file mode 100644 index b9a136e..0000000 --- a/templates/copy/file/node.tag/to/node.tag/node.def +++ /dev/null @@ -1,10 +0,0 @@ -help: Copy files to specified destination -comptype: imagefiles -allowed: echo -n "" -run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; - then - sudo ${vyatta_sbindir}/vyatta-image-tools.pl --copy $3 $5 - else - echo Must be an admin user to run this command. - fi - diff --git a/templates/copy/node.def b/templates/copy/node.def deleted file mode 100644 index eb33037..0000000 --- a/templates/copy/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Copy an object diff --git a/templates/delete/file/node.def b/templates/delete/file/node.def deleted file mode 100644 index 92c8f6c..0000000 --- a/templates/delete/file/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Delete files in a particular image diff --git a/templates/delete/file/node.tag/node.def b/templates/delete/file/node.tag/node.def deleted file mode 100644 index 0faf383..0000000 --- a/templates/delete/file/node.tag/node.def +++ /dev/null @@ -1,10 +0,0 @@ -help: Delete files in the specified directory -comptype: imagefiles -allowed: echo -n "" -run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; - then - sudo ${vyatta_sbindir}/vyatta-image-tools.pl --delete=$3 - else - echo Must be an admin user to run this command. - fi - diff --git a/templates/show/file/node.def b/templates/show/file/node.def deleted file mode 100644 index a6c408d..0000000 --- a/templates/show/file/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Show files for a particular image diff --git a/templates/show/file/node.tag/node.def b/templates/show/file/node.tag/node.def deleted file mode 100644 index 8d3eb32..0000000 --- a/templates/show/file/node.tag/node.def +++ /dev/null @@ -1,10 +0,0 @@ -help: Show files in the specified directory -comptype: imagefiles -allowed: echo -n "" -run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; - then - sudo ${vyatta_sbindir}/vyatta-image-tools.pl --show=$3 - else - echo Must be an admin user to run this command. - fi - -- cgit v1.2.3