nuth.ch/scripts/install.sh

9 lines
297 B
Bash
Raw Normal View History

2019-03-25 13:25:09 +00:00
#!/bin/bash
cd $(dirname $0)
cd ..
tempDir=$(mktemp -d)
2019-03-27 07:55:08 +00:00
sourceDir="./Website"
find . -name "*" -and -not -name "." -and -not -name ".env" -and -not -path "$sourceDir/*" -and -not -path $sourceDir -exec rm -rf {} +
2019-04-05 09:00:54 +00:00
rsync -a --delete $sourceDir $tempDir
2019-03-25 13:25:09 +00:00
rsync -a --delete $tempDir/ .
rm -rf $tempDir