From 087703fae449b725ebd82bc3cd65763a016fb098 Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Wed, 11 Oct 2017 13:29:13 +0530 Subject: extras/hooks: Fix errors reported via shellcheck utility Change-Id: I217c6b2a39955f1709bb3452b00d33c2dcb60faa BUG: 1500649 Signed-off-by: Anoop C S --- extras/hook-scripts/delete/pre/S10selinux-del-fcontext.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'extras/hook-scripts/delete') diff --git a/extras/hook-scripts/delete/pre/S10selinux-del-fcontext.sh b/extras/hook-scripts/delete/pre/S10selinux-del-fcontext.sh index 2c83331d5cd..7851e702382 100755 --- a/extras/hook-scripts/delete/pre/S10selinux-del-fcontext.sh +++ b/extras/hook-scripts/delete/pre/S10selinux-del-fcontext.sh @@ -13,12 +13,9 @@ PROGNAME="Sselinux" OPTSPEC="volname:" VOL= -CONFIGFILE= -LOGFILEBASE= -PIDDIR= function parse_args () { - ARGS=$(getopt -l $OPTSPEC -name $PROGNAME $@) + ARGS=$(getopt -l $OPTSPEC -name $PROGNAME "$@") eval set -- "$ARGS" while true; do @@ -53,7 +50,7 @@ function delete_brick_fcontext() SELINUX_STATE=$(which getenforce && getenforce) [ "${SELINUX_STATE}" = 'Disabled' ] && exit 0 -parse_args $@ +parse_args "$@" [ -z "$VOL" ] && exit 1 delete_brick_fcontext $VOL -- cgit active' href='/cgit/glusterfs-snapshot.git/log/tests/bugs?h=upstream'>logtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* fuse: Check the return status from state->resolve_nowupstreamVijaykumar M2013-11-141-0/+35
* glusterd: Release big-lock after log-rotate handler returnsKrutika Dhananjay2013-10-301-0/+26
* glusterd : Improved quota volume reset commandAnuradha2013-10-281-0/+39
* cli,glusterd: Changes to cli-glusterd communicationKaushal M2013-10-172-11/+9
* cluster/afr: [Feature] Command implementation to get heal-countVenkatesh Somyajulu2013-10-142-0/+176
* cli,glusterd: Implement 'volume status tasks'Krutika Dhananjay2013-10-082-4/+4
* Tests: Enable fore-ground self-healPranith Kumar K2013-10-031-0/+1
* tests: Create a regression-tests package for distributionHarshavardhana2013-09-191-1/+1
* cli/glusterd: improve rebalance fix-layout status reportingRavishankar N2013-09-192-2/+50
* mgmt/glusterd: Update sub_count on remove brickVijay Bellur2013-09-111-0/+25
* cli: Fix 'status all' xml output when volumes are not startedKaushal M2013-09-111-0/+26
* glusterfsd: use-readdirp w/o arguments should not turn off readdirpHarshavardhana2013-09-091-0/+7
* cluster/dht: assign layout onto missing directories tooAnand Avati2013-09-091-0/+46
* glusterfsd: Round robin DNS should not be relied upon withHarshavardhana2013-09-061-0/+19
* stripe: remove unused param, handle mem alloc failureKaleb S. KEITHLEY2013-08-281-0/+54
* nfs: persistent caching of connected NFS-clientsNiels de Vos2013-08-281-0/+90
* mount/fuse: perform lookup() on inodes linked through readdirplusAnand Avati2013-08-231-2/+2
* bug-979365.t: fix wrong expectation of encountering fsyncAnand Avati2013-08-221-1/+6
* glusterd: add check in remove-brick start variantRavishankar N2013-08-211-11/+16
* tests: Avoid another 'grep' in ps outputHarshavardhana2013-08-201-1/+1
* cli: Add server uuid into volume brick info xmlTimothy Asir2013-08-181-0/+27
* tests: make sure to avoid 'grep' in ps outputHarshavardhana2013-08-181-1/+1
* protocol/server: Relax lktable finodelk del_locker checkPranith Kumar K2013-08-171-0/+3
* glusterd: remove-brick:Allow simultaneous removal of multiple subvolumes.Ravishankar N2013-08-131-0/+52
* cli,glusterd: Fix when tasks are shown in 'volume status'Kaushal M2013-08-031-0/+24
* performance/open-behind: Fix fd-leaks in unlink, renamePranith Kumar K2013-08-031-0/+35
* cluster/afr: Disable eager-lock if open-fd-count > 1Pranith Kumar K2013-08-021-0/+31
* Revert "storage/posix: Remove the interim fix that handles the gfid race"shishir gowda2013-07-301-1/+2
* libglusterfs/client_t client_t implementation, phase 1Kaleb S. KEITHLEY2013-07-291-1/+1
* tests: fix test script to turn on write-behindAnand Avati2013-07-271-1/+1
* cluster/afr: Handle REPLICATE_TRASH_DIR from old bricksPranith Kumar K2013-07-261-0/+52
* tests: Avoid timing delays caused by fsyncPranith Kumar K2013-07-234-0/+4
* cluster/afr: Handle parallel hardlinks self-healPranith Kumar K2013-07-231-0/+27
* move 'xlators/marker/utils/' to 'geo-replication/' directoryAvra Sengupta2013-07-224-152/+0
* mount/fuse: unlink the inode on revalidate if entry not foundBrian Foster2013-07-181-0/+55
* tests: call 'cleanup' at the end of each testNiels de Vos2013-07-157-0/+12
* afr: customize client-pid=-1 xtime aggregation to tolerate a replica downAvra Sengupta2013-07-151-0/+41
* mount/fuse: Provide option to use/not use kernel-readdirpPranith Kumar K2013-07-121-0/+45
* cli: check for null in is_server_debug_xlator()Ravishankar N2013-07-121-0/+36
* tests: Don't use stripe-replicate volume in bug-905864.tKrishnan Parthasarathi2013-07-101-1/+1
* nfs: AUTH support for exported sub-directoriesRajesh Joseph2013-07-093-37/+77
* cli: Fix remove brick cli out for wrong volume nameVenkatesh Somyajulu2013-07-041-0/+32
* cluster/afr: Provide an option to disable afr durabilityPranith Kumar K2013-07-031-0/+42
* glusterd: More checks before starting rebalance/remove-brickKaushal M2013-07-021-0/+33
* cluster/afr: Allow data/entry self heal for metadata split-brainVenkatesh Somyajulu2013-07-021-0/+114
* libglusterfs: Fix valid_host_name for consecutive dotsKaushal M2013-07-021-0/+21
* cluster/afr: Handle NULL fdctx in fsyncPranith Kumar K2013-06-271-0/+29
* nfs: Remove afr split-brain handling in nfsPranith Kumar K2013-06-251-0/+36
* cluster/afr: Fix fd/memory leak on fsyncPranith Kumar K2013-06-241-0/+27
* cluster/dht: In reconfig handle removed decommissioned nodesshishir gowda2013-06-211-0/+48