Fixing small bugs.

This commit is contained in:
Adsooi 2022-01-08 14:38:55 +01:00
parent 53693b9b7b
commit 20b789268f
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
2 changed files with 11 additions and 1 deletions

View file

@ -4,6 +4,13 @@
This script allows you to execute common sequencially scripts on various servers. It can be use to quickly run maintainance scripts on several servers while having proper feedback when things go wrong.
## Dependencies:
This script has several dependencies:
- bash
- awk
- sshpass
- docker on remote server if it does not have it.
## How to use
### Creating scripts

View file

@ -22,7 +22,10 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
echo ""
cd "$(dirname $(readlink $0))"
# Cd into the directory of the library
script="$(readlink $0)"
if [ -z "$script" ]; then script="$0"; fi
cd "$(dirname "$script")"
# Importing common functions.
. ./libraries/common.sh