mirror of
https://git.cloudron.io/cloudron/syncthing-app
synced 2025-09-01 04:34:58 +00:00
Set defaultFolderPath
This commit is contained in:
3
start.sh
3
start.sh
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
mkdir -p /app/data/config
|
mkdir -p /app/data/config /app/data/folders
|
||||||
|
|
||||||
# if this if the first run, generate a useful config
|
# if this if the first run, generate a useful config
|
||||||
if [ ! -f /app/data/config/config.xml ]; then
|
if [ ! -f /app/data/config/config.xml ]; then
|
||||||
@@ -13,6 +13,7 @@ if [ ! -f /app/data/config/config.xml ]; then
|
|||||||
xmlstarlet ed --inplace \
|
xmlstarlet ed --inplace \
|
||||||
--subnode "//configuration/gui" -t elem -n user -v "admin" \
|
--subnode "//configuration/gui" -t elem -n user -v "admin" \
|
||||||
--subnode "//configuration/gui" -t elem -n password -v '$2a$10$93OsgwAMD4NcPFTpGDnuTORMMbj5dc1ZlYUPrQCcy1N/Bsy9scUvK' \
|
--subnode "//configuration/gui" -t elem -n password -v '$2a$10$93OsgwAMD4NcPFTpGDnuTORMMbj5dc1ZlYUPrQCcy1N/Bsy9scUvK' \
|
||||||
|
--update "//configuration/options/defaultFolderPath" -v '/app/data/folders' \
|
||||||
/app/data/config/config.xml
|
/app/data/config/config.xml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user