Loading readme.md +1 −1 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ kubectl apply -f kubernetes.yml ```yaml volumes: - /home/user/example:/shared - /home/user/example:/data ``` The example folder `/home/user/example` will be available as ` \\host.lan\Data`. Loading src/samba.sh +11 −3 Original line number Diff line number Diff line Loading @@ -14,7 +14,15 @@ if [[ "$DHCP" == [Yy1]* ]]; then interface="$VM_NET_DEV" fi share="/data" if [ ! -d "$share" ] && [ -d "$STORAGE/data" ]; then share="$STORAGE/data" fi if [ ! -d "$share" ] && [ -d "/shared" ]; then share="/shared" fi if [ ! -d "$share" ] && [ -d "$STORAGE/shared" ]; then share="$STORAGE/shared" Loading @@ -36,11 +44,11 @@ if [ -z "$(ls -A "$share")" ]; then echo "To change its location, include the following bind mount in your compose file:" echo "" echo " volumes:" echo " - \"/home/user/example:/shared\"" echo " - \"/home/user/example:/data\"" echo "" echo "Or in your run command:" echo "" echo " -v \"/home/user/example:/shared\"" echo " -v \"/home/user/example:/data\"" echo "" echo "Replace the example path /home/user/example with the desired shared folder." echo "" Loading Loading
readme.md +1 −1 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ kubectl apply -f kubernetes.yml ```yaml volumes: - /home/user/example:/shared - /home/user/example:/data ``` The example folder `/home/user/example` will be available as ` \\host.lan\Data`. Loading
src/samba.sh +11 −3 Original line number Diff line number Diff line Loading @@ -14,7 +14,15 @@ if [[ "$DHCP" == [Yy1]* ]]; then interface="$VM_NET_DEV" fi share="/data" if [ ! -d "$share" ] && [ -d "$STORAGE/data" ]; then share="$STORAGE/data" fi if [ ! -d "$share" ] && [ -d "/shared" ]; then share="/shared" fi if [ ! -d "$share" ] && [ -d "$STORAGE/shared" ]; then share="$STORAGE/shared" Loading @@ -36,11 +44,11 @@ if [ -z "$(ls -A "$share")" ]; then echo "To change its location, include the following bind mount in your compose file:" echo "" echo " volumes:" echo " - \"/home/user/example:/shared\"" echo " - \"/home/user/example:/data\"" echo "" echo "Or in your run command:" echo "" echo " -v \"/home/user/example:/shared\"" echo " -v \"/home/user/example:/data\"" echo "" echo "Replace the example path /home/user/example with the desired shared folder." echo "" Loading