mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 14:55:39 +00:00
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: Eugene Kolomeetz <klm@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
92d8c31750
commit
1525aee1e4
@@ -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 {
|
|||||||
|
|
||||||
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"
|
||||||
|
Reference in New Issue
Block a user