diff --git a/roles/nfs_server/files/mknfshomedir.sh b/roles/nfs_server/files/mknfshomedir.sh index c8839e7..e6922a2 100755 --- a/roles/nfs_server/files/mknfshomedir.sh +++ b/roles/nfs_server/files/mknfshomedir.sh @@ -1,6 +1,6 @@ -#!/bin/bash +#!/bin/sh -set -e +set -eu LOCKFILE="/run/$(basename "$0").pid" STATEFILE="/run/$(basename "$0").state" @@ -50,7 +50,7 @@ _state="$( ' )" if [ -f "$STATEFILE" ]; then - if [ "$_state" == "$(cat "$STATEFILE")" ]; then + if [ "$_state" = "$(cat "$STATEFILE")" ]; then exit 0 fi fi diff --git a/roles/nfs_server/files/mknfsroledir.sh b/roles/nfs_server/files/mknfsroledir.sh index ecab512..74946a0 100755 --- a/roles/nfs_server/files/mknfsroledir.sh +++ b/roles/nfs_server/files/mknfsroledir.sh @@ -1,6 +1,6 @@ -#!/bin/bash +#!/bin/sh -set -e +set -eu LOCKFILE="/run/$(basename "$0").pid" STATEFILE="/run/$(basename "$0").state" @@ -50,7 +50,7 @@ _state="$( ' )" if [ -f "$STATEFILE" ]; then - if [ "$_state" == "$(cat "$STATEFILE")" ]; then + if [ "$_state" = "$(cat "$STATEFILE")" ]; then exit 0 fi fi