Last active
April 16, 2018 08:05
-
-
Save valorad/d39654a723c5e9c85448041536522705 to your computer and use it in GitHub Desktop.
Mount Parallel Desktop Shared Folder to workspace as a non-root user (uid=1000)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Mount Parallel Desktop Shared Folder to workspace as a non-root user (uid=1000) | |
[Service] | |
ExecStart=/bin/bash /workspace/pMountSF.sh | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sfs=`ls /media/psf/` | |
for folder in ${sfs[@]}; do mkdir -p /workspace/$folder; mount -t prl_fs -o uid=1000,gid=1000 $folder /workspace/$folder; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment