aboutsummaryrefslogtreecommitdiff
path: root/config.sh
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-04-18 22:05:42 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-04-18 22:06:14 -0400
commitb4f1681909a0016c6c7583c7f965d75cef2fda92 (patch)
tree5090406029b6065869e2ef1790b4d717ff1c5c4a /config.sh
parent47b3ff0e10aa447da09957966116d638305d337f (diff)
added .ssh keys because they're encrypted
Diffstat (limited to 'config.sh')
-rwxr-xr-xconfig.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/config.sh b/config.sh
index 5b9c376..a000bbd 100755
--- a/config.sh
+++ b/config.sh
@@ -3,12 +3,13 @@
for file in $(find src -type f); do
export clean=$(echo $file | cut -c 4-) #Removes src prefix
- install -d $(dirname $clean)
- install -m 644 $file $clean
+ mkdir -pv $(dirname $clean)
+ cp $file $clean
done
for file in $(find home -type f); do
export clean=/home/${USE}$(echo $file | cut -c 5-)
- install -o $USE -d $(dirname $clean)
- install -o $USE $file $clean
+ mkdir -pv $(dirname $clean)
+ cp $file $clean
done
+chown -R ${USE}:${USE} /home/${USE}