Compare commits
5 Commits
0597bf34b3
...
53c6e8c70e
Author | SHA1 | Date |
---|---|---|
|
53c6e8c70e | |
|
b05e8051aa | |
|
678d76df4d | |
|
37a3c77c80 | |
|
4ea52c5943 |
8
test.sh
8
test.sh
|
@ -1,8 +0,0 @@
|
|||
CONFIGDIRS="\
|
||||
-path .config \
|
||||
-path .local/share/backgrounds \
|
||||
-path testdir1 \
|
||||
-path testdir2"
|
||||
|
||||
echo $CONFIGDIRS
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
HOMEDIR=$(getent passwd "$PAM_USER" | cut -d: -f6)
|
||||
WMDERPDIRNAME=".wmde-osync"
|
||||
WMDERPDIR="$HOMEDIR/$WMDERPDIRNAME"
|
||||
|
||||
LOGFILE=$WMDERPDIR/usersync.log
|
||||
|
|
|
@ -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\"" \
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
@ -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
|
||||
|
|
@ -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/' \
|
||||
|
|
Loading…
Reference in New Issue