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