Logs into .wmde-osync-directory, so this file isnt inside roaming profile

This commit is contained in:
Tobias Herre 2025-05-02 17:44:51 -04:00
parent 4ea52c5943
commit 37a3c77c80
1 changed files with 2 additions and 18 deletions

View File

@ -32,24 +32,6 @@ echo $$ > $PIDFILE
create_knonw_hosts_and_nfshomedir
iiiiiireplace_keys_values() {
outfile="$1"
shift # Entfernt outfile aus den Argumenten
infile="$PREFIX/osync.conf.template" # Kannst du bei Bedarf ebenfalls als Parameter machen
tmpfile="$(mktemp)"
cp "$infile" "$tmpfile"
for pair in "$@"; do
key="${pair%%=*}"
value="${pair#*=}"
escaped_key=$(printf '%s\n' "$key" | sed 's/[][\/.^$*]/\\&/g')
sed -i "s/^$escaped_key=.*/$key=$value/" "$tmpfile"
done
mv "$tmpfile" "$outfile"
}
replace_keys_values() {
outfile="$1"
@ -101,6 +83,8 @@ generate_config()
"MIN_WAIT=30" \
"MAX_WAIT=300" \
"FORCE_STRANGER_LOCK_RESUME=true" \
"LOGFILE=\"$WMDERPDIR/wmde-rp-sync.log\"" \