summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-02-08 16:11:24 +0000
committerGitHub <noreply@github.com>2024-02-08 16:11:24 +0000
commit0949fdbf93cd76d7f8c65ed56cdfc27a43c1944f (patch)
treedd4401900444d1888ff3a04bfa23feb823e27450 /templates
parent6a0b841718bb83cffbbb198c788f7d634c4c9dc0 (diff)
parent6e94def372856437d6e2fd6252ae272cc502c87e (diff)
downloadvyatta-op-0949fdbf93cd76d7f8c65ed56cdfc27a43c1944f.tar.gz
vyatta-op-0949fdbf93cd76d7f8c65ed56cdfc27a43c1944f.zip
Merge pull request #84 from erkin/current
op-mode: T4038: Remove legacy `vyatta-image-tools.pl`
Diffstat (limited to 'templates')
-rw-r--r--templates/clone/node.def1
-rw-r--r--templates/clone/system/config/node.def1
-rw-r--r--templates/clone/system/config/node.tag/from/node.def1
-rw-r--r--templates/clone/system/config/node.tag/from/node.tag/node.def18
-rw-r--r--templates/clone/system/config/node.tag/node.def14
-rw-r--r--templates/clone/system/node.def1
-rw-r--r--templates/copy/file/node.def1
-rw-r--r--templates/copy/file/node.tag/node.def3
-rw-r--r--templates/copy/file/node.tag/to/node.def1
-rw-r--r--templates/copy/file/node.tag/to/node.tag/node.def10
-rw-r--r--templates/copy/node.def1
-rw-r--r--templates/delete/file/node.def1
-rw-r--r--templates/delete/file/node.tag/node.def10
-rw-r--r--templates/show/file/node.def1
-rw-r--r--templates/show/file/node.tag/node.def10
15 files changed, 0 insertions, 74 deletions
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 "<imagefiles>"
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 "<imagefiles>"
-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 "<imagefiles>"
-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 "<imagefiles>"
-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
-