summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-misc/profile-sync-daemon/files/daemon')
-rw-r--r--www-misc/profile-sync-daemon/files/daemon12
1 files changed, 6 insertions, 6 deletions
diff --git a/www-misc/profile-sync-daemon/files/daemon b/www-misc/profile-sync-daemon/files/daemon
index 749ba85e7..7f2ee04e9 100644
--- a/www-misc/profile-sync-daemon/files/daemon
+++ b/www-misc/profile-sync-daemon/files/daemon
@@ -10,40 +10,40 @@ PIDFILE=/var/run/${SVCNAME}.pid
start() {
ebegin "Starting Profile-Sync-Daemon"
- if [[ -z $USERS ]]; then
+ if [ -z "$USERS" ]; then
eerror "Define at least one user in /etc/psd.conf"
return 1
fi
for i in $USERS; do
homedir=$(su -c 'echo $HOME' $i)
- if [[ ! -d $homedir ]]; then
+ if [ ! -d "$homedir" ]; then
eerror "Invalid user defined in /etc/psd.conf"
return 1
fi
done
/usr/bin/profile-sync-daemon check
- start-stop-daemon --start --pidfile ${PIDFILE} --make-pidfile --background \
+ start-stop-daemon --start --pidfile "${PIDFILE}" --make-pidfile --background \
--exec /usr/bin/profile-sync-daemon -- sync
eend $?
}
stop() {
ebegin "Stopping Profile-Sync-Daemon"
- if [[ ! -f $PIDFILE ]]; then
+ if [ ! -f "$PIDFILE" ]; then
eerror "Profile-Sync-Daemon is not running, nothing to stop!"
return 1
else
/usr/bin/profile-sync-daemon sync && /usr/bin/profile-sync-daemon unsync
- rm -f ${PIDFILE}
+ rm -f "${PIDFILE}"
fi
eend $?
}
sync() {
ebegin "Syncing browser profiles in tmpfs to physical disc"
- if [[ ! -f $PIDFILE ]]; then
+ if [ ! -f "$PIDFILE" ]; then
eerror "Profile-Sync-Daemon is not running... cannot sync!"
return 1
else