all the python scripts are for python2, and fedora31 requires to be specific
[vsys-scripts.git] / root-context / exec / dotsshmount
1 #!/bin/sh
2 SRC="/home/$1/.ssh"
3 DEST="/vservers/$1/home/$1/.ssh"
4
5 mkdir -p $DEST &> /dev/null
6
7 mount | grep "on $DEST type" > /dev/null
8 if [ $? -ne 0 ]; then
9    /bin/mount --bind -o ro $SRC $DEST > /dev/null
10 fi
11