Improve the installation-script

This commit is contained in:
Manuel Thalmann 2019-04-09 20:53:29 +02:00
parent 502e116849
commit e2e9b02bca

View file

@ -2,8 +2,19 @@
cd $(dirname $0)
cd ..
tempDir=$(mktemp -d)
sourceDir="./Website"
find . -name "*" -and -not -name "." -and -not -name ".env" -and -not -path "$sourceDir/*" -and -not -path $sourceDir -exec rm -rf {} +
sourceDir="."
find $sourceDir \
-name "*" -and \
-not \( \
\( \
-path "Website"
\) \
-prune \
\) -and \
-not -name ".env" \
-print
rsync -a --delete $sourceDir $tempDir
rsync -a --delete $tempDir/ .
rm -rf $tempDir