policycoreutils: sandbox: init script run twice is still successful
If sandbox init script is run multiple times to start it should still return 0 rather than an error. Things should still be set up. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
6c2ad1ce52
commit
c00affcc3e
|
@ -27,7 +27,7 @@ base=${0##*/}
|
|||
start() {
|
||||
echo -n "Starting sandbox"
|
||||
|
||||
[ -f "$LOCKFILE" ] && return 1
|
||||
[ -f "$LOCKFILE" ] && return 0
|
||||
|
||||
touch $LOCKFILE
|
||||
mount --make-rshared / || return $?
|
||||
|
|
Loading…
Reference in New Issue