From f121bfa66b01dd15ceb857bfc1b6859b075c81fa Mon Sep 17 00:00:00 2001 From: sthope Date: Sun, 5 Sep 2021 15:56:20 +0200 Subject: [PATCH] Add 'custom-cmds-in-ubuntu/bin_examples/portainercli-config.sh' --- .../bin_examples/portainercli-config.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 custom-cmds-in-ubuntu/bin_examples/portainercli-config.sh diff --git a/custom-cmds-in-ubuntu/bin_examples/portainercli-config.sh b/custom-cmds-in-ubuntu/bin_examples/portainercli-config.sh new file mode 100644 index 0000000..54b912b --- /dev/null +++ b/custom-cmds-in-ubuntu/bin_examples/portainercli-config.sh @@ -0,0 +1,16 @@ +#!/bin/bash +################################### +############ by Sthope ############ +################################### + +## nano ~/.bashrc +## and add this to the end of the file: export PATH=$PATH:~/bin +## sudo chmod +x ~/bin/*;su -l $USER + +#### USAGE +# bash -c "$(wget -qLO - https://git.sthope.dev/sthope/sthope-examples/src/branch/master/custom-cmds-in-ubuntu/bin_examples/proxmox_addnewuser)" Username Password +# + +portainer-cli configure http://127.0.0.1:9000/ +portainer-cli login $1 $2 +portainer-cli -d request status \ No newline at end of file