mirror of
https://github.com/jorgevasquezp/yorchnet_scripts.git
synced 2026-08-16 23:36:49 +00:00
created script to make a new project out of a predefined structured '.project' folder, and a script to mount all shares attached to the local server
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
server=paraulata.casa.vm
|
||||
user=jorge
|
||||
mount_point=/media
|
||||
|
||||
drives=$(ssh $user@$server ls $mount_point )
|
||||
|
||||
for dir in ${drives[@]}; do
|
||||
mkdir $mount/$dir;
|
||||
chown jorge $mount/$dir
|
||||
sshfs jorge@paraulata.casa.vm:$mount/$dir $mount/$dir &
|
||||
done
|
||||
Reference in New Issue
Block a user