Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pad92 committed Jun 16, 2023
1 parent 46117f8 commit 6b63a8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .zshaliases
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# Docker
## Ansible
if [ $(command -v docker) ]; then
alias ansible-sh='docker run -it --rm -v $(readlink -f $SSH_AUTH_SOCK):/ssh-agent -v ${PWD}:/ansible -e SSH_AUTH_SOCK=/ssh-agent pad92/ansible-alpine:2.10 sh'
alias ansible-playbook='docker run -it --rm -v $(readlink -f $SSH_AUTH_SOCK):/ssh-agent -v ${PWD}:/ansible -e SSH_AUTH_SOCK=/ssh-agent pad92/ansible-alpine:2.10 ansible-playbook'
alias ansible-sh='docker run -it --rm -v $(readlink -f $SSH_AUTH_SOCK):/ssh-agent \
-v ${PWD}:/ansible \
-e SSH_AUTH_SOCK=/ssh-agent \
pad92/ansible-alpine:2.10 sh'
alias ansible-playbook='docker run -it --rm -v $(readlink -f $SSH_AUTH_SOCK):/ssh-agent \
-v ${PWD}:/ansible \
-e SSH_AUTH_SOCK=/ssh-agent \
pad92/ansible-alpine:2.10 ansible-playbook'
fi


# Arch
## remove orphans
if [ $(command -v pacman) ] && [ $(command -v yay) ]; then
Expand Down
2 changes: 1 addition & 1 deletion bin/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ HOSTNAME="$(hostnamectl hostname)"
BASEDIR=$(dirname "$0")
TIMESTAMP=$(date "+%Y%m%d-%H%M%S")
RSYNC_OPTS='--archive --perms --xattrs --safe-links --no-specials --no-devices --info=progress2 --delete --delete-excluded'
SUDO_OPTS='-E -s'
SUDO_OPTS='-s'
#if [ ! -d "${BACKUP_DIR}/${HOSTNAME}${HOME}/" ]; then
# echo "create ${BACKUP_DIR}/${HOSTNAME}${HOME}/"
# sudo mkdir -p "${BACKUP_DIR}/${HOSTNAME}${HOME}/"
Expand Down

0 comments on commit 6b63a8c

Please sign in to comment.