mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-21 10:09:56 +01:00
Fix folder check
This commit is contained in:
parent
b9438d411d
commit
718bf213b1
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
set -uo pipefail
|
||||
|
||||
# Backup folder
|
||||
BACKUP_MAIN="$HOME/backups"
|
||||
@ -14,7 +14,7 @@ if [ -d "/etc/iptables/" ]; then
|
||||
fi
|
||||
|
||||
# Copy LXC confs
|
||||
if [ -h "/etc/pve/lxc/" ]; then
|
||||
if [ -e "/etc/pve/lxc/" ]; then
|
||||
mkdir -p $BACKUP_MAIN/lxc
|
||||
rm $BACKUP_MAIN/lxc/*.conf
|
||||
sudo cp -R /etc/pve/lxc/* $BACKUP_MAIN/lxc/
|
||||
|
Loading…
Reference in New Issue
Block a user