Commit 1525aee1 authored by Eugene Kolomeetz's avatar Eugene Kolomeetz Committed by Pavel Emelyanov

scripts: single style for command substitution in systemd-autofs-restart.sh

Let's use $(...) form, it is more readable, and used in other places.
Signed-off-by: 's avatarEugene Kolomeetz <klm@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 92d8c317
...@@ -93,7 +93,7 @@ function save_mountpoint { ...@@ -93,7 +93,7 @@ function save_mountpoint {
# Nothing to do, if no file system is on top of autofs # Nothing to do, if no file system is on top of autofs
check_fs_type $mountpoint "autofs" && return check_fs_type $mountpoint "autofs" && return
bindmount=`$JOIN_CT mktemp -d` bindmount=$($JOIN_CT mktemp -d)
if [ -z "$bindmount" ]; then if [ -z "$bindmount" ]; then
echo "Failed to create temporary directory" echo "Failed to create temporary directory"
return return
...@@ -121,7 +121,7 @@ function restore_mountpoint { ...@@ -121,7 +121,7 @@ function restore_mountpoint {
function restart_service { function restart_service {
local service=$1 local service=$1
local mountpoint=`$JOIN_CT systemctl show $service -p Where | sed 's/.*=//g'` local mountpoint=$($JOIN_CT systemctl show $service -p Where | sed 's/.*=//g')
if [ -z "$mountpoint" ]; then if [ -z "$mountpoint" ]; then
echo "Failed to discover $service mountpoint" echo "Failed to discover $service mountpoint"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment