Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added option to deny access to sync target while initial rsync is act…
…ive (aesiris).
  • Loading branch information
graysky2 committed Jan 26, 2013
1 parent 6b313bb commit e7f82e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
@@ -1,3 +1,7 @@
v5.11
26-Jan-2013
Added option to deny access to sync target while initial rsync is active (GNA).

v5.10
20-Dec-2012
Reverted to v5.09.
Expand Down
8 changes: 4 additions & 4 deletions profile-sync-daemon
Expand Up @@ -2,7 +2,7 @@
# By graysky <graysky AT archlinux DOT us>
# Inspired by some code originally written by Colin Verot
export BLD="\e[01m" RED="\e[01;31m" GRN="\e[01;32m" YLW="\e[01;33m" NRM="\e[00m"
VERS="5.10"
VERS="5.11"

if [[ ! -f /etc/psd.conf ]]; then
echo "Cannot find /etc/psd.conf so bailing. Reinstall package to use Profile-sync-daemon." # nothing to do if there is no conf file
Expand Down Expand Up @@ -255,8 +255,6 @@ do_sync() {
# backup target and link to tmpfs container
if [[ $(readlink "$DIR") != "$VOLATILE/$user-$browser$suffix" ]]; then
mv "$DIR" "$BACKUP"
ln -s "$VOLATILE/$user-$browser$suffix" "$DIR"
chown -h $user:$group "$DIR"
fi

# sync the tmpfs targets to the disc
Expand All @@ -265,7 +263,9 @@ do_sync() {
else
# initial sync
# keep user from launching browser while rsync is active
rsync -aog --delay-updates "$BACKUP/" "$DIR/"
rsync -aog --delay-updates "$BACKUP/" "$VOLATILE/$user-$browser$suffix/"
ln -s "$VOLATILE/$user-$browser$suffix" "$DIR"
chown -h $user:$group "$DIR"
touch "$DIR/.flagged"
fi
fi
Expand Down

0 comments on commit e7f82e5

Please sign in to comment.