Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37427891
en ru br
Репозитории ALT

Группа :: Сети/WWW
Пакет: profile-sync-daemon

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: fix_syntax.patch
Скачать


diff --git a/common/profile-sync-daemon.in b/common/profile-sync-daemon.in
index ec89b4d..7ef3341 100644
--- a/common/profile-sync-daemon.in
+++ b/common/profile-sync-daemon.in
@@ -117,7 +117,7 @@ else
 fi
 
 # simple function to determine user intent rather than using a null value
-case "${USE_OVERLAYFS,,}" in
+case "${USE_OVERLAYFS}" in
   y|yes|true|t|on|1|enabled|enable|use)
     OLFS=1
     ;;
@@ -127,9 +127,9 @@ case "${USE_OVERLAYFS,,}" in
 esac
 
 # since the default for this one is a yes, need to force a null value to yes
-[[ -z "${USE_BACKUPS,,}" ]] && USE_BACKUPS="yes"
+[[ -z "${USE_BACKUPS}" ]] && USE_BACKUPS="yes"
 
-case "${USE_BACKUPS,,}" in
+case "${USE_BACKUPS}" in
   y|yes|true|t|on|1|enabled|enable|use)
     CRRE=1
     ;;
@@ -351,7 +351,7 @@ running_check() {
   for browser in "${BROWSERS[@]}"; do
     load_env_for "$browser"
     [[ -z "$PSNAME" ]] && continue
-    if pgrep -u "$user" "\<$PSNAME\>" &>/dev/null; then
+    if pgrep -u "$user" "$PSNAME" &>/dev/null; then
       echo "Refusing to start; $browser is running by $user!"
       exit 1
     fi
@@ -404,12 +404,12 @@ kill_browsers() {
     local x=1
     while [[ $x -le 60 ]]; do
       [[ -n "$PSNAME" ]] || break
-      pgrep -u "$user" "\<$PSNAME\>" &>/dev/null || break
+      pgrep -u "$user" "$PSNAME" &>/dev/null || break
 
       if [[ $x -le 5 ]]; then
-        pkill -SIGTERM -u "$user" "\<$PSNAME\>"
+        pkill -SIGTERM -u "$user" "$PSNAME"
       else
-        pkill -SIGKILL -u "$user" "\<$PSNAME\>"
+        pkill -SIGKILL -u "$user" "$PSNAME"
       fi
 
       x=$(( x + 1 ))
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin