summaryrefslogtreecommitdiff
path: root/templates/clone
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/clone
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/clone')
-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
6 files changed, 0 insertions, 36 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