summaryrefslogtreecommitdiff
path: root/templates/show/configuration/files/node.def
blob: 698ba14bbef860a485c2713e0bd2adeb2c110fa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
help: Show available saved configurations
run: if [ "$VYATTA_USER_LEVEL_DIR" == "/opt/vyatta/etc/shell/level/admin" ]; 
     then
       find ${vyatta_sysconfdir}/config/ -type f -not -name ".*" -not -name "config.boot.*" -printf "%f\t(%Tc)\t%T@\n" | sort -r -k3 | awk -F"\t" '{printf ("%-20s\t%s\n", $1,$2) ;}'
     else
        echo Must be an admin user to run this command.
     fi