2023-02-10 00:17:29 +00:00
|
|
|
#!/bin/bash
|
2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-02-10 00:17:29 +00:00
|
|
|
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
|
|
|
|
|
|
|
. /etc/profile
|
|
|
|
|
|
|
|
ROOTPASS=$(get_setting root.password)
|
|
|
|
# Set the root user and password for SyncThing
|
|
|
|
syncthing generate --gui-user root --gui-password ${ROOTPASS}
|
|
|
|
xmlstarlet ed --inplace -u "//configuration/gui/address" -v ":8384" /storage/.config/syncthing/config.xml
|
|
|
|
|
|
|
|
syncthing -no-browser -no-restart
|