summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2021-02-04 21:07:49 +0100
committerivarlovlie <git@ivarlovlie.no>2021-02-04 21:07:49 +0100
commit8ab503cb340255b45d0071ef27322cda36b62567 (patch)
treecb4c07d645ca45cc8bab6eaa01cee88622f5ae67
parent899d56a4f4b132e1ef2f9b42e707f5c137c6e074 (diff)
downloaddotfiles-server-8ab503cb340255b45d0071ef27322cda36b62567.tar.xz
dotfiles-server-8ab503cb340255b45d0071ef27322cda36b62567.zip
latest
-rw-r--r--.bashrc7
-rw-r--r--bin/create_docker_network2
-rw-r--r--bin/create_docker_volume4
-rwxr-xr-x[-rw-r--r--]setup_fail2ban.sh0
4 files changed, 9 insertions, 4 deletions
diff --git a/.bashrc b/.bashrc
index 20e6670..356658b 100644
--- a/.bashrc
+++ b/.bashrc
@@ -18,5 +18,10 @@ alias grep.lines='grep -rnw . -e'
alias sl="ls"
alias ls="ls -la"
alias ..="cd .."
-alias f2b.ssh="sudo fail2ban-client status ssh"
+alias ...="cd ../../"
+alias f2b.ssh="sudo fail2ban-client status sshd"
alias ports="sudo ss -atpu"
+alias docker="sudo docker"
+alias docker-compose="sudo docker-compose"
+alias systemctl="sudo systemctl"
+alias please="sudo !!"
diff --git a/bin/create_docker_network b/bin/create_docker_network
index 5b573bc..1e55846 100644
--- a/bin/create_docker_network
+++ b/bin/create_docker_network
@@ -1,2 +1,2 @@
#!/bin/bash
-docker network create -d bridge $1
+sudo docker network create -d bridge $1
diff --git a/bin/create_docker_volume b/bin/create_docker_volume
index 5732d18..74e1192 100644
--- a/bin/create_docker_volume
+++ b/bin/create_docker_volume
@@ -1,3 +1,3 @@
#!/bin/bash
-mkdir /var/opt/$1
-docker volume create --driver local --opt type=none --opt device=/var/opt/$1 --opt o=bind $1
+sudo mkdir /var/opt/$1
+sudo docker volume create --driver local --opt type=none --opt device=/var/opt/$1 --opt o=bind $1
diff --git a/setup_fail2ban.sh b/setup_fail2ban.sh
index b817ee6..b817ee6 100644..100755
--- a/setup_fail2ban.sh
+++ b/setup_fail2ban.sh