|
|
@ -27,7 +27,7 @@ if [[ -z "$1" ]]; then |
|
|
|
chmod -R u=rwX,g=,o= "$dir" |
|
|
|
chmod -R u=rwX,g=,o= "$dir" |
|
|
|
chmod 600 "$dir"/ssh/authorized_keys |
|
|
|
chmod 600 "$dir"/ssh/authorized_keys |
|
|
|
elif [[ "$1" == "link" ]]; then |
|
|
|
elif [[ "$1" == "link" ]]; then |
|
|
|
ln --symbolic "$hostdir/$relpath" ~/"$relpath" |
|
|
|
ln --symbolic -T "$hostdir/$relpath" ~/"$relpath" |
|
|
|
elif [[ "$1" == "mkdir" ]]; then |
|
|
|
elif [[ "$1" == "mkdir" ]]; then |
|
|
|
mkdir -p ~/"$relpath" |
|
|
|
mkdir -p ~/"$relpath" |
|
|
|
else |
|
|
|
else |
|
|
|