Compare commits

...

5 Commits

Author SHA1 Message Date
Tobias Herre 53c6e8c70e WMDERPDIR in wmde-rp.conf 2025-05-02 18:41:04 -04:00
Tobias Herre b05e8051aa Not needen anymore 2025-05-02 17:48:17 -04:00
Tobias Herre 678d76df4d Local directory added for exclusion 2025-05-02 17:46:07 -04:00
Tobias Herre 37a3c77c80 Logs into .wmde-osync-directory, so this file isnt inside roaming profile 2025-05-02 17:44:51 -04:00
Tobias Herre 4ea52c5943 Removed 2025-05-02 17:05:17 -04:00
7 changed files with 6 additions and 51 deletions

2
rm.sh
View File

@ -1,2 +0,0 @@
rm -f /tmp/tobias.herre.txz
rm -rf /home/tobias.herre

View File

@ -1,8 +0,0 @@
CONFIGDIRS="\
-path .config \
-path .local/share/backgrounds \
-path testdir1 \
-path testdir2"
echo $CONFIGDIRS

View File

@ -1,7 +1,6 @@
#!/bin/sh
HOMEDIR=$(getent passwd "$PAM_USER" | cut -d: -f6)
WMDERPDIRNAME=".wmde-osync"
WMDERPDIR="$HOMEDIR/$WMDERPDIRNAME"
LOGFILE=$WMDERPDIR/usersync.log

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\"" \

View File

@ -1,11 +0,0 @@
#!/bin/sh
while true; do
size=$(du -sh $1 | cut -f1)
echo "Loading roaming profile: $size of $2."
sleep 3
done

View File

@ -1,11 +0,0 @@
#!/bin/sh
echo "hallo" >> /tmp/tobias
sleep 60
echo "sart hallo" >> /tmp/tobias
systemctl --user daemon-reload
systemctl --user enable wmde-rp-usersync-nfs.service
systemctl --user start wmde-rp-usersync-nfs.service
echo "end hallo" >> /tmp/tobias

View File

@ -15,11 +15,13 @@ NETGROUPS="wmde-rp-general"
WAIT_FOR_CONFIG=always # always, first or never
WAIT_FOR_FULLSYNC=never # always, first or never
WMDERPDIRNAME=".wmde-rp"
CONFIG_DIRS=" \
--exclude='$WMDERPDIRNAME' \
--exclude='.osync_workdir' \
--exclude='Local' \
--include='*.kdbx' \
--include='.ssh/***' \
--include='.cache/' \
@ -45,6 +47,7 @@ CONFIG_DIRS=" \
FULL_DIRS=" \
--exclude='$WMDERPDIRNAME' \
--exclude='.osync_workdir' \
--exclude='Local' \
--include='*.kdbx' \
--include='.ssh/***' \
--include='.cache/' \
@ -72,6 +75,7 @@ FULL_DIRS=" \
PERM_DIRS=" \
--exclude='$WMDERPDIRNAME' \
--exclude='.osync_workdir' \
--exclude='Local' \
--include='*.kdbx' \
--include='.ssh/***' \
--include='.cache/' \