This commit is contained in:
2022-07-09 10:08:27 +01:00
parent 91578adc23
commit 230ac0d3c6
4 changed files with 76 additions and 22 deletions

View File

@ -16,11 +16,6 @@ then
BASE=/zTools/zShared BASE=/zTools/zShared
fi fi
if [ ! -d /zTools/zPrivateConfig ] && [ ! -d /static ] && [ -d /zTools/zShared ]
then
BASE=/zTools/zShared
fi
if [ ! -d /zTools/zPrivateConfig ] && [ -d /static ] && [ ! -d /zTools/zShared ] if [ ! -d /zTools/zPrivateConfig ] && [ -d /static ] && [ ! -d /zTools/zShared ]
then then
BASE=/static BASE=/static
@ -31,6 +26,11 @@ then
BASE=/zTools/zPrivateConfig BASE=/zTools/zPrivateConfig
fi fi
if [ ! -d /zTools/zPrivateConfig ] && [ ! -d /static ] && [ -d /zTools/zShared ]
then
BASE=/zTools/zShared
fi
MYNAME=$(uname -n) MYNAME=$(uname -n)
if [ -d /volume12/zTools/Sync${MYNAME}/zTools/zShared ] if [ -d /volume12/zTools/Sync${MYNAME}/zTools/zShared ]
then then

View File

@ -16,11 +16,6 @@ then
BASE=/zTools/zShared BASE=/zTools/zShared
fi fi
if [ ! -d /zTools/zPrivateConfig ] && [ ! -d /static ] && [ -d /zTools/zShared ]
then
BASE=/zTools/zShared
fi
if [ ! -d /zTools/zPrivateConfig ] && [ -d /static ] && [ ! -d /zTools/zShared ] if [ ! -d /zTools/zPrivateConfig ] && [ -d /static ] && [ ! -d /zTools/zShared ]
then then
BASE=/static BASE=/static
@ -31,6 +26,11 @@ then
BASE=/zTools/zPrivateConfig BASE=/zTools/zPrivateConfig
fi fi
if [ ! -d /zTools/zPrivateConfig ] && [ ! -d /static ] && [ -d /zTools/zShared ]
then
BASE=/zTools/zShared
fi
MYNAME=$(uname -n) MYNAME=$(uname -n)
if [ -d /volume12/zTools/Sync${MYNAME}/zTools/zShared ] if [ -d /volume12/zTools/Sync${MYNAME}/zTools/zShared ]
then then

View File

@ -1,15 +1,42 @@
#!/bin/sh #!/bin/sh
echo $0
if [ -d /zTools/zPrivateConfig/shared ] && [ ! -d /static ] if [ ! -d /zTools/zPrivateConfig ] && [ -d /static ]
then
BASE=/zTools/zPrivateConfig/shared
fi
if [ ! -d /zTools/zPrivateConfig/shared ] && [ -d /static ]
then then
BASE=/static BASE=/static
fi fi
if [ -d /zTools/zPrivateConfig ] && [ ! -d /static ]
then
BASE=/zTools/zPrivateConfig
fi
if [ -d /zTools/zShared ]
then
BASE=/zTools/zShared
fi
if [ ! -d /zTools/zPrivateConfig ] && [ -d /static ] && [ ! -d /zTools/zShared ]
then
BASE=/static
fi
if [ -d /zTools/zPrivateConfig ] && [ ! -d /static ] && [ ! -d /zTools/zShared ]
then
BASE=/zTools/zPrivateConfig
fi
if [ ! -d /zTools/zPrivateConfig ] && [ ! -d /static ] && [ -d /zTools/zShared ]
then
BASE=/zTools/zShared
fi
MYNAME=$(uname -n)
if [ -d /volume12/zTools/Sync${MYNAME}/zTools/zShared ]
then
BASE=/volume12/zTools/Sync${MYNAME}/zTools/zShared
fi
if [ -f ${BASE}/secrets/.telegramenv ] if [ -f ${BASE}/secrets/.telegramenv ]
then then
. ${BASE}/secrets/.telegramenv . ${BASE}/secrets/.telegramenv

View File

@ -1,15 +1,42 @@
#!/bin/sh #!/bin/sh
echo $0
if [ -d /zTools/zPrivateConfig/shared ] && [ ! -d /static ] if [ ! -d /zTools/zPrivateConfig ] && [ -d /static ]
then
BASE=/zTools/zPrivateConfig/shared
fi
if [ ! -d /zTools/zPrivateConfig/shared ] && [ -d /static ]
then then
BASE=/static BASE=/static
fi fi
if [ -d /zTools/zPrivateConfig ] && [ ! -d /static ]
then
BASE=/zTools/zPrivateConfig
fi
if [ -d /zTools/zShared ]
then
BASE=/zTools/zShared
fi
if [ ! -d /zTools/zPrivateConfig ] && [ -d /static ] && [ ! -d /zTools/zShared ]
then
BASE=/static
fi
if [ -d /zTools/zPrivateConfig ] && [ ! -d /static ] && [ ! -d /zTools/zShared ]
then
BASE=/zTools/zPrivateConfig
fi
if [ ! -d /zTools/zPrivateConfig ] && [ ! -d /static ] && [ -d /zTools/zShared ]
then
BASE=/zTools/zShared
fi
MYNAME=$(uname -n)
if [ -d /volume12/zTools/Sync${MYNAME}/zTools/zShared ]
then
BASE=/volume12/zTools/Sync${MYNAME}/zTools/zShared
fi
if [ -f ${BASE}/secrets/.telegramenv ] if [ -f ${BASE}/secrets/.telegramenv ]
then then
. ${BASE}/secrets/.telegramenv . ${BASE}/secrets/.telegramenv