style fixes

This commit is contained in:
Girish Ramakrishnan 2020-04-08 09:43:15 -07:00
parent f62a05aa0b
commit fb8bb68aa8
1 changed files with 2 additions and 2 deletions

View File

@ -5,11 +5,11 @@ set -eu
mkdir -p /app/data/config /app/data/folders /run/syncthing
# 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
echo "=> Generating config"
STNODEFAULTFOLDER=1 /app/code/syncthing --generate="/app/data/config"
# The password value was determined by reading config.xml and setting value in the GUI
# The password value (changeme) was determined by reading config.xml and setting value in the GUI
# urAccepted is 0 for not decided, -1 for no reporting
xmlstarlet ed --inplace \
--subnode "//configuration/gui" -t elem -n user -v "admin" \