mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 03:45:48 +00:00
feat: Rename shared folder
This commit is contained in:
parent
3cab3d1c7b
commit
676f92fdcc
1 changed files with 11 additions and 3 deletions
14
src/samba.sh
14
src/samba.sh
|
|
@ -14,7 +14,15 @@ if [[ "$DHCP" == [Yy1]* ]]; then
|
||||||
interface="$VM_NET_DEV"
|
interface="$VM_NET_DEV"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
share="/shared"
|
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
|
if [ ! -d "$share" ] && [ -d "$STORAGE/shared" ]; then
|
||||||
share="$STORAGE/shared"
|
share="$STORAGE/shared"
|
||||||
|
|
@ -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 "To change its location, include the following bind mount in your compose file:"
|
||||||
echo ""
|
echo ""
|
||||||
echo " volumes:"
|
echo " volumes:"
|
||||||
echo " - \"/home/user/example:/shared\""
|
echo " - \"/home/user/example:/data\""
|
||||||
echo ""
|
echo ""
|
||||||
echo "Or in your run command:"
|
echo "Or in your run command:"
|
||||||
echo ""
|
echo ""
|
||||||
echo " -v \"/home/user/example:/shared\""
|
echo " -v \"/home/user/example:/data\""
|
||||||
echo ""
|
echo ""
|
||||||
echo "Replace the example path /home/user/example with the desired shared folder."
|
echo "Replace the example path /home/user/example with the desired shared folder."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue