Skip to content

Commit

Permalink
Merge pull request ceph#16494 from asomers/bin_bash
Browse files Browse the repository at this point in the history
misc: Fix bash path in shebangs

Reviewed-by: Willem Jan Withagen <[email protected]>
Reviewed-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov authored Aug 27, 2017
2 parents dbe1e6e + 3aae5ca commit 30b5b46
Show file tree
Hide file tree
Showing 205 changed files with 287 additions and 231 deletions.
2 changes: 1 addition & 1 deletion README.FreeBSD
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Other improvements:
easy creation of OSDs.
- RBD is actually buildable and can be used to manage RADOS BLOCK
DEVICEs.
- Most of the awkward dependencies on Linux-isms are deleted only
- Most of the awkward dependencies on Linux-isms are deleted only
/bin/bash is there to stay.

Getting the FreeBSD work on Ceph:
Expand Down
2 changes: 1 addition & 1 deletion examples/rbd-replay/create-image
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

pool=rbd
image=my-image
Expand Down
2 changes: 1 addition & 1 deletion examples/rbd-replay/replay
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

lttng create
lttng enable-event -u 'librbd:*'
Expand Down
2 changes: 1 addition & 1 deletion examples/rbd-replay/run-rbd-replay-prep
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash

../../src/rbd-replay-prep traces/ust/uid/10002/64-bit replay.bin
2 changes: 1 addition & 1 deletion examples/rbd-replay/trace
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

mkdir -p traces
lttng create -o traces librbd
Expand Down
3 changes: 2 additions & 1 deletion install-deps.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash
#
# Ceph distributed storage system
#
Expand All @@ -11,6 +11,7 @@
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
set -e
DIR=/tmp/install-deps.$$
trap "rm -fr $DIR" EXIT
mkdir -p $DIR
Expand Down
2 changes: 1 addition & 1 deletion make-debs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2015 Red Hat <[email protected]>
#
Expand Down
2 changes: 1 addition & 1 deletion mirroring/mirror-ceph.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
#
# Script to mirror Ceph locally
Expand Down
2 changes: 1 addition & 1 deletion mirroring/test-mirrors.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Simple script which performs a HTTP and rsync check on
# all Ceph mirrors over IPv4 and IPv6 to see if they are online
Expand Down
3 changes: 2 additions & 1 deletion qa/client/30_subdir_mount.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash -x
#!/usr/bin/env bash
set -x

basedir=`echo $0 | sed 's/[^/]*$//g'`.
. $basedir/common.sh
Expand Down
3 changes: 2 additions & 1 deletion qa/client/gen-1774.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! /bin/bash -e
#!/usr/bin/env bash
set -e

mount () { :; }
umount () { :; }
Expand Down
4 changes: 2 additions & 2 deletions qa/loopall.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -x
#!/usr/bin/env bash

set -e
set -ex

basedir=`echo $0 | sed 's/[^/]*$//g'`.
testdir="$1"
Expand Down
2 changes: 1 addition & 1 deletion qa/machine_types/schedule_rados_ovh.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# $1 - part
# $2 - branch name
Expand Down
2 changes: 1 addition & 1 deletion qa/machine_types/schedule_subset.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

#command line => CEPH_BRANCH=<branch>; MACHINE_NAME=<machine_type>; SUITE_NAME=<suite>; ../schedule_subset.sh <day_of_week> $CEPH_BRANCH $MACHINE_NAME $SUITE_NAME $CEPH_QA_EMAIL

Expand Down
3 changes: 2 additions & 1 deletion qa/mds/test_anchortable.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash -x
#!/usr/bin/env bash
set -x

mkdir links
for f in `seq 1 8`
Expand Down
3 changes: 2 additions & 1 deletion qa/mds/test_mdstable_failures.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash -x
#!/usr/bin/env bash
set -x

for f in `seq 1 8`
do
Expand Down
2 changes: 1 addition & 1 deletion qa/nightlies/cron_wrapper
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# /nightlies/cron_wrapper.sh

# check for no argument case and stop
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#! /usr/bin/env bash
if [ $# -ne 5 ]; then
echo 'Usage: ceph_install.sh <admin-node> <mon-node> <osd-node> <osd-node> <osd-node>'
exit -1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#! /usr/bin/env bash
if [ -f ~/secrets ]; then
source ~/secrets
fi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#! /usr/bin/env bash
cephnodes=$*
monnode=$1
sudo yum -y install ceph-ansible
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#! /usr/bin/env bash
ed /etc/ansible/hosts << EOF
$
a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#! /usr/bin/env bash
ed /usr/share/ceph-ansible/group_vars/osds << EOF
$
/^devices:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#! /usr/bin/env bash
source copy_func.sh
allparms=$*
cmdv=$1
Expand Down
2 changes: 1 addition & 1 deletion qa/qa_scripts/openstack/ceph_install_w_ansible/repolocs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#! /usr/bin/env bash
SPECIFIC_VERSION=latest-Ceph-2-RHEL-7
#SPECIFIC_VERSION=Ceph-2-RHEL-7-20160630.t.0
#SPECIFIC_VERSION=Ceph-2.0-RHEL-7-20160718.t.0
Expand Down
2 changes: 1 addition & 1 deletion qa/qa_scripts/openstack/ceph_install_w_ansible/staller.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#! /usr/bin/env bash
cmd_wait=$1
shift
sites=$*
Expand Down
2 changes: 1 addition & 1 deletion qa/qa_scripts/openstack/ceph_install_w_ansible/talknice.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
declare -A rsapub
for fulln in $*; do
sname=`echo $fulln | sed 's/\..*//'`
Expand Down
4 changes: 3 additions & 1 deletion qa/qa_scripts/openstack/execs/ceph-pool-create.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -f
#!/usr/bin/env bash
set -f

#
# On the ceph site, make the pools required for Openstack
#
Expand Down
4 changes: 3 additions & 1 deletion qa/qa_scripts/openstack/execs/ceph_cluster.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#! /bin/bash -f
#!/usr/bin/env bash
set -f

echo $OS_CEPH_ISO
if [[ $# -ne 4 ]]; then
echo "Usage: ceph_cluster mon.0 osd.0 osd.1 osd.2"
Expand Down
3 changes: 2 additions & 1 deletion qa/qa_scripts/openstack/execs/libvirt-secret.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash -f
#!/usr/bin/env bash
set -f

#
# Generate a libvirt secret on the Openstack node.
Expand Down
4 changes: 3 additions & 1 deletion qa/qa_scripts/openstack/execs/openstack-preinstall.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -f
#!/usr/bin/env bash
set -f

#
# Remotely setup the stuff needed to run packstack. This should do items 1-4 in
# https://docs.google.com/document/d/1us18KR3LuLyINgGk2rmI-SVj9UksCE7y4C2D_68Aa8o/edit?ts=56a78fcb
Expand Down
4 changes: 3 additions & 1 deletion qa/qa_scripts/openstack/execs/run_openstack.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -fv
#!/usr/bin/env bash
set -fv

#
# Create a glance image, a corresponding cinder volume, a nova instance, attach, the cinder volume to the
# nova instance, and create a backup.
Expand Down
4 changes: 3 additions & 1 deletion qa/qa_scripts/openstack/execs/start_openstack.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -fv
#!/usr/bin/env bash
set -fv

#
# start the Openstack services
#
Expand Down
2 changes: 1 addition & 1 deletion qa/rbd/common.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

die() {
echo "$*"
Expand Down
3 changes: 2 additions & 1 deletion qa/rbd/rbd.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash -x
#!/usr/bin/env bash
set -x

basedir=`echo $0 | sed 's/[^/]*$//g'`.
. $basedir/common.sh
Expand Down
2 changes: 1 addition & 1 deletion qa/run_xfstests-obsolete.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright (C) 2012 Dreamhost, LLC
#
Expand Down
2 changes: 1 addition & 1 deletion qa/run_xfstests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright (C) 2012 Dreamhost, LLC
#
Expand Down
2 changes: 1 addition & 1 deletion qa/run_xfstests_krbd.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# This is a wrapper around run_xfstests.sh to provide an expunge file
# suitable for krbd xfstests runs.
Expand Down
2 changes: 1 addition & 1 deletion qa/run_xfstests_qemu.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# TODO switch to run_xfstests.sh (see run_xfstests_krbd.sh)

Expand Down
4 changes: 2 additions & 2 deletions qa/runallonce.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -x
#!/usr/bin/env bash

set -e
set -ex

basedir=`echo $0 | sed 's/[^/]*$//g'`.
testdir="$1"
Expand Down
3 changes: 2 additions & 1 deletion qa/runoncfuse.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash -x
#!/usr/bin/env bash
set -x

mkdir -p testspace
ceph-fuse testspace -m $1
Expand Down
5 changes: 3 additions & 2 deletions qa/runonkclient.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash -x
#!/usr/bin/env bash
set -x

mkdir -p testspace
/bin/mount -t ceph $1 testspace

./runallonce.sh testspace

/bin/umount testspace
/bin/umount testspace
2 changes: 1 addition & 1 deletion qa/setup-chroot.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

die() {
echo ${@}
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/ceph-helpers.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2013,2014 Cloudwatt <[email protected]>
# Copyright (C) 2014,2015 Red Hat <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/crush/crush-choose-args.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2017 Red Hat <[email protected]>
#
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/crush/crush-classes.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2017 Red Hat <[email protected]>
#
Expand Down
3 changes: 2 additions & 1 deletion qa/standalone/erasure-code/test-erasure-code-plugins.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash -x
#!/usr/bin/env bash
set -x

source $CEPH_ROOT/qa/standalone/ceph-helpers.sh

Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/erasure-code/test-erasure-code.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2014 Cloudwatt <[email protected]>
# Copyright (C) 2014, 2015 Red Hat <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/erasure-code/test-erasure-eio.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2015 Red Hat <[email protected]>
#
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/misc/rados-striper.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2014 Red Hat <[email protected]>
#
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/misc/test-ceph-helpers.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2013,2014 Cloudwatt <[email protected]>
# Copyright (C) 2014 Red Hat <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/mon/misc.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2014 Cloudwatt <[email protected]>
# Copyright (C) 2014, 2015 Red Hat <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/mon/mkfs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2013 Cloudwatt <[email protected]>
# Copyright (C) 2014 Red Hat <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/mon/mon-bind.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2017 Quantum Corp.
#
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/mon/mon-created-time.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2015 SUSE LINUX GmbH
#
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/mon/mon-handle-forward.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2013 Cloudwatt <[email protected]>
# Copyright (C) 2014,2015 Red Hat <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/mon/mon-ping.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2015 SUSE LINUX GmbH
#
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/mon/mon-scrub.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2014 Cloudwatt <[email protected]>
# Copyright (C) 2014, 2015 Red Hat <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/mon/osd-crush.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2014 Cloudwatt <[email protected]>
# Copyright (C) 2014, 2015 Red Hat <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion qa/standalone/mon/osd-erasure-code-profile.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (C) 2014 Cloudwatt <[email protected]>
# Copyright (C) 2014, 2015 Red Hat <[email protected]>
Expand Down
Loading

0 comments on commit 30b5b46

Please sign in to comment.