summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2023-09-07 20:40:41 +0100
committerChristian Breunig <christian@breunig.cc>2023-09-14 07:56:58 +0200
commit0814f38e5985651c57e7b6b0d3908bae19a19df8 (patch)
treeb79d00a5adab795178130901065e0444fe851c45 /templates
parent63c5b3b55c2e244148a2f7946c7e7cb0792c8a27 (diff)
downloadvyatta-op-0814f38e5985651c57e7b6b0d3908bae19a19df8.tar.gz
vyatta-op-0814f38e5985651c57e7b6b0d3908bae19a19df8.zip
T671: remove scripts that are either unused or about to be replaced
(cherry picked from commit 2f92b8bbb1b1042ff14918af3495c86f8b0c7870)
Diffstat (limited to 'templates')
-rw-r--r--templates/delete/log/file/node.def1
-rw-r--r--templates/delete/log/file/node.tag/node.def5
-rw-r--r--templates/delete/log/node.def1
-rw-r--r--templates/release/dhcp/interface/node.tag/node.def1
-rw-r--r--templates/show/remote-config/openvpn/node.def1
-rw-r--r--templates/show/remote-config/openvpn/node.tag/node.def5
-rw-r--r--templates/show/remote-config/openvpn/node.tag/remote-platform/node.def1
-rw-r--r--templates/show/remote-config/openvpn/node.tag/remote-platform/node.tag/node.def9
8 files changed, 0 insertions, 24 deletions
diff --git a/templates/delete/log/file/node.def b/templates/delete/log/file/node.def
deleted file mode 100644
index 96d455d..0000000
--- a/templates/delete/log/file/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Delete the specified log file
diff --git a/templates/delete/log/file/node.tag/node.def b/templates/delete/log/file/node.tag/node.def
deleted file mode 100644
index ce4a4f7..0000000
--- a/templates/delete/log/file/node.tag/node.def
+++ /dev/null
@@ -1,5 +0,0 @@
-help: Delete the specified log file
-allowed: local -a array ;
- array=( /var/log/user/* ) ;
- echo -n ${array[@]##*/}
-run: sudo ${vyatta_bindir}/sudo-users/vyatta-delete-log-file.sh "$4"
diff --git a/templates/delete/log/node.def b/templates/delete/log/node.def
deleted file mode 100644
index badd128..0000000
--- a/templates/delete/log/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Delete a log file
diff --git a/templates/release/dhcp/interface/node.tag/node.def b/templates/release/dhcp/interface/node.tag/node.def
index f483278..3f6831c 100644
--- a/templates/release/dhcp/interface/node.tag/node.def
+++ b/templates/release/dhcp/interface/node.tag/node.def
@@ -1,3 +1,2 @@
help: Release DHCP IP address lease for specified interface
-allowed: /opt/vyatta/bin/show-dhcp-leases.pl
run: sudo /opt/vyatta/bin/sudo-users/vyatta-interfaces.pl --dhcp release --dev "$4"
diff --git a/templates/show/remote-config/openvpn/node.def b/templates/show/remote-config/openvpn/node.def
deleted file mode 100644
index d417cb6..0000000
--- a/templates/show/remote-config/openvpn/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Show remote side config for OpenVPN
diff --git a/templates/show/remote-config/openvpn/node.tag/node.def b/templates/show/remote-config/openvpn/node.tag/node.def
deleted file mode 100644
index afb8cfb..0000000
--- a/templates/show/remote-config/openvpn/node.tag/node.def
+++ /dev/null
@@ -1,5 +0,0 @@
-help: Show remote side OpenVPN config
-
-allowed: local -a array ;
- eval "array=( $(cli-shell-api listEffectiveNodes interfaces openvpn) )" ;
- echo -n '<vtunN>' ${array[@]##*/}
diff --git a/templates/show/remote-config/openvpn/node.tag/remote-platform/node.def b/templates/show/remote-config/openvpn/node.tag/remote-platform/node.def
deleted file mode 100644
index 15502c9..0000000
--- a/templates/show/remote-config/openvpn/node.tag/remote-platform/node.def
+++ /dev/null
@@ -1 +0,0 @@
-help: Show remote side OpenVPN config for specified platform
diff --git a/templates/show/remote-config/openvpn/node.tag/remote-platform/node.tag/node.def b/templates/show/remote-config/openvpn/node.tag/remote-platform/node.tag/node.def
deleted file mode 100644
index 66f334c..0000000
--- a/templates/show/remote-config/openvpn/node.tag/remote-platform/node.tag/node.def
+++ /dev/null
@@ -1,9 +0,0 @@
-help: Show remote side OpenVPN config for specified platform
-allowed: echo -n "vyos openvpn"
-
-run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ];
- then
- sudo ${vyatta_sbindir}/vyos-openvpn-remoteconfig.pl $4 $6
- else
- echo Must be an admin user to run this command.
- fi