mirror of https://github.com/ceph/ceph
scripts: fix bash path in shebangs
/bin/bash is a Linuxism. Other operating systems install bash to different paths. Use /usr/bin/env in shebangs to find bash. Signed-off-by: Alan Somers <asomers@gmail.com>
This commit is contained in:
parent
da4286ee0e
commit
3aae5ca6fd
|
@ -28,7 +28,7 @@ Other improvements:
|
||||||
easy creation of OSDs.
|
easy creation of OSDs.
|
||||||
- RBD is actually buildable and can be used to manage RADOS BLOCK
|
- RBD is actually buildable and can be used to manage RADOS BLOCK
|
||||||
DEVICEs.
|
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.
|
/bin/bash is there to stay.
|
||||||
|
|
||||||
Getting the FreeBSD work on Ceph:
|
Getting the FreeBSD work on Ceph:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
pool=rbd
|
pool=rbd
|
||||||
image=my-image
|
image=my-image
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
lttng create
|
lttng create
|
||||||
lttng enable-event -u 'librbd:*'
|
lttng enable-event -u 'librbd:*'
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
../../src/rbd-replay-prep traces/ust/uid/10002/64-bit replay.bin
|
../../src/rbd-replay-prep traces/ust/uid/10002/64-bit replay.bin
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
mkdir -p traces
|
mkdir -p traces
|
||||||
lttng create -o traces librbd
|
lttng create -o traces librbd
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash -e
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Ceph distributed storage system
|
# Ceph distributed storage system
|
||||||
#
|
#
|
||||||
|
@ -11,6 +11,7 @@
|
||||||
# License as published by the Free Software Foundation; either
|
# License as published by the Free Software Foundation; either
|
||||||
# version 2.1 of the License, or (at your option) any later version.
|
# version 2.1 of the License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
|
set -e
|
||||||
DIR=/tmp/install-deps.$$
|
DIR=/tmp/install-deps.$$
|
||||||
trap "rm -fr $DIR" EXIT
|
trap "rm -fr $DIR" EXIT
|
||||||
mkdir -p $DIR
|
mkdir -p $DIR
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
#
|
#
|
||||||
# Script to mirror Ceph locally
|
# Script to mirror Ceph locally
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Simple script which performs a HTTP and rsync check on
|
# Simple script which performs a HTTP and rsync check on
|
||||||
# all Ceph mirrors over IPv4 and IPv6 to see if they are online
|
# all Ceph mirrors over IPv4 and IPv6 to see if they are online
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
set -x
|
||||||
|
|
||||||
basedir=`echo $0 | sed 's/[^/]*$//g'`.
|
basedir=`echo $0 | sed 's/[^/]*$//g'`.
|
||||||
. $basedir/common.sh
|
. $basedir/common.sh
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#! /bin/bash -e
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
mount () { :; }
|
mount () { :; }
|
||||||
umount () { :; }
|
umount () { :; }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
basedir=`echo $0 | sed 's/[^/]*$//g'`.
|
basedir=`echo $0 | sed 's/[^/]*$//g'`.
|
||||||
testdir="$1"
|
testdir="$1"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# $1 - part
|
# $1 - part
|
||||||
# $2 - branch name
|
# $2 - branch name
|
||||||
|
|
|
@ -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
|
#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
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
set -x
|
||||||
|
|
||||||
mkdir links
|
mkdir links
|
||||||
for f in `seq 1 8`
|
for f in `seq 1 8`
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
set -x
|
||||||
|
|
||||||
for f in `seq 1 8`
|
for f in `seq 1 8`
|
||||||
do
|
do
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# /nightlies/cron_wrapper.sh
|
# /nightlies/cron_wrapper.sh
|
||||||
|
|
||||||
# check for no argument case and stop
|
# check for no argument case and stop
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
if [ $# -ne 5 ]; then
|
if [ $# -ne 5 ]; then
|
||||||
echo 'Usage: ceph_install.sh <admin-node> <mon-node> <osd-node> <osd-node> <osd-node>'
|
echo 'Usage: ceph_install.sh <admin-node> <mon-node> <osd-node> <osd-node> <osd-node>'
|
||||||
exit -1
|
exit -1
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
if [ -f ~/secrets ]; then
|
if [ -f ~/secrets ]; then
|
||||||
source ~/secrets
|
source ~/secrets
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
cephnodes=$*
|
cephnodes=$*
|
||||||
monnode=$1
|
monnode=$1
|
||||||
sudo yum -y install ceph-ansible
|
sudo yum -y install ceph-ansible
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
ed /etc/ansible/hosts << EOF
|
ed /etc/ansible/hosts << EOF
|
||||||
$
|
$
|
||||||
a
|
a
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
ed /usr/share/ceph-ansible/group_vars/osds << EOF
|
ed /usr/share/ceph-ansible/group_vars/osds << EOF
|
||||||
$
|
$
|
||||||
/^devices:
|
/^devices:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
source copy_func.sh
|
source copy_func.sh
|
||||||
allparms=$*
|
allparms=$*
|
||||||
cmdv=$1
|
cmdv=$1
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
SPECIFIC_VERSION=latest-Ceph-2-RHEL-7
|
SPECIFIC_VERSION=latest-Ceph-2-RHEL-7
|
||||||
#SPECIFIC_VERSION=Ceph-2-RHEL-7-20160630.t.0
|
#SPECIFIC_VERSION=Ceph-2-RHEL-7-20160630.t.0
|
||||||
#SPECIFIC_VERSION=Ceph-2.0-RHEL-7-20160718.t.0
|
#SPECIFIC_VERSION=Ceph-2.0-RHEL-7-20160718.t.0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#! /usr/bin/env bash
|
||||||
cmd_wait=$1
|
cmd_wait=$1
|
||||||
shift
|
shift
|
||||||
sites=$*
|
sites=$*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
declare -A rsapub
|
declare -A rsapub
|
||||||
for fulln in $*; do
|
for fulln in $*; do
|
||||||
sname=`echo $fulln | sed 's/\..*//'`
|
sname=`echo $fulln | sed 's/\..*//'`
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/bash -f
|
#!/usr/bin/env bash
|
||||||
|
set -f
|
||||||
|
|
||||||
#
|
#
|
||||||
# On the ceph site, make the pools required for Openstack
|
# On the ceph site, make the pools required for Openstack
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#! /bin/bash -f
|
#!/usr/bin/env bash
|
||||||
|
set -f
|
||||||
|
|
||||||
echo $OS_CEPH_ISO
|
echo $OS_CEPH_ISO
|
||||||
if [[ $# -ne 4 ]]; then
|
if [[ $# -ne 4 ]]; then
|
||||||
echo "Usage: ceph_cluster mon.0 osd.0 osd.1 osd.2"
|
echo "Usage: ceph_cluster mon.0 osd.0 osd.1 osd.2"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash -f
|
#!/usr/bin/env bash
|
||||||
|
set -f
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generate a libvirt secret on the Openstack node.
|
# Generate a libvirt secret on the Openstack node.
|
||||||
|
|
|
@ -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
|
# 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
|
# https://docs.google.com/document/d/1us18KR3LuLyINgGk2rmI-SVj9UksCE7y4C2D_68Aa8o/edit?ts=56a78fcb
|
||||||
|
|
|
@ -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
|
# Create a glance image, a corresponding cinder volume, a nova instance, attach, the cinder volume to the
|
||||||
# nova instance, and create a backup.
|
# nova instance, and create a backup.
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/bash -fv
|
#!/usr/bin/env bash
|
||||||
|
set -fv
|
||||||
|
|
||||||
#
|
#
|
||||||
# start the Openstack services
|
# start the Openstack services
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
echo "$*"
|
echo "$*"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
set -x
|
||||||
|
|
||||||
basedir=`echo $0 | sed 's/[^/]*$//g'`.
|
basedir=`echo $0 | sed 's/[^/]*$//g'`.
|
||||||
. $basedir/common.sh
|
. $basedir/common.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Copyright (C) 2012 Dreamhost, LLC
|
# Copyright (C) 2012 Dreamhost, LLC
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Copyright (C) 2012 Dreamhost, LLC
|
# Copyright (C) 2012 Dreamhost, LLC
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# This is a wrapper around run_xfstests.sh to provide an expunge file
|
# This is a wrapper around run_xfstests.sh to provide an expunge file
|
||||||
# suitable for krbd xfstests runs.
|
# suitable for krbd xfstests runs.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# TODO switch to run_xfstests.sh (see run_xfstests_krbd.sh)
|
# TODO switch to run_xfstests.sh (see run_xfstests_krbd.sh)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
basedir=`echo $0 | sed 's/[^/]*$//g'`.
|
basedir=`echo $0 | sed 's/[^/]*$//g'`.
|
||||||
testdir="$1"
|
testdir="$1"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
set -x
|
||||||
|
|
||||||
mkdir -p testspace
|
mkdir -p testspace
|
||||||
ceph-fuse testspace -m $1
|
ceph-fuse testspace -m $1
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
set -x
|
||||||
|
|
||||||
mkdir -p testspace
|
mkdir -p testspace
|
||||||
/bin/mount -t ceph $1 testspace
|
/bin/mount -t ceph $1 testspace
|
||||||
|
|
||||||
./runallonce.sh testspace
|
./runallonce.sh testspace
|
||||||
|
|
||||||
/bin/umount testspace
|
/bin/umount testspace
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
echo ${@}
|
echo ${@}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
# Copyright (C) 2014,2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014,2015 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2017 Red Hat <contact@redhat.com>
|
# Copyright (C) 2017 Red Hat <contact@redhat.com>
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2017 Red Hat <contact@redhat.com>
|
# Copyright (C) 2017 Red Hat <contact@redhat.com>
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
set -x
|
||||||
|
|
||||||
source $CEPH_ROOT/qa/standalone/ceph-helpers.sh
|
source $CEPH_ROOT/qa/standalone/ceph-helpers.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014 Red Hat <contact@redhat.com>
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
# Copyright (C) 2014 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
# Copyright (C) 2014 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2017 Quantum Corp.
|
# Copyright (C) 2017 Quantum Corp.
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 SUSE LINUX GmbH
|
# Copyright (C) 2015 SUSE LINUX GmbH
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2013 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
# Copyright (C) 2014,2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014,2015 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 SUSE LINUX GmbH
|
# Copyright (C) 2015 SUSE LINUX GmbH
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2013, 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2013, 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#
|
#
|
||||||
# Generic pool quota test
|
# Generic pool quota test
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source $CEPH_ROOT/qa/standalone/ceph-helpers.sh
|
source $CEPH_ROOT/qa/standalone/ceph-helpers.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2016 Piotr Dałek <git@predictor.org.pl>
|
# Copyright (C) 2016 Piotr Dałek <git@predictor.org.pl>
|
||||||
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 Intel <contact@intel.com.com>
|
# Copyright (C) 2015 Intel <contact@intel.com.com>
|
||||||
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Author: Vicente Cheng <freeze.bilsted@gmail.com>
|
# Author: Vicente Cheng <freeze.bilsted@gmail.com>
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014 Red Hat <contact@redhat.com>
|
||||||
#
|
#
|
||||||
|
@ -14,6 +14,7 @@
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Library Public License for more details.
|
# GNU Library Public License for more details.
|
||||||
#
|
#
|
||||||
|
set -x
|
||||||
source $CEPH_ROOT/qa/standalone/ceph-helpers.sh
|
source $CEPH_ROOT/qa/standalone/ceph-helpers.sh
|
||||||
|
|
||||||
if [ `uname` = FreeBSD ]; then
|
if [ `uname` = FreeBSD ]; then
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
||||||
#
|
#
|
||||||
|
|
|
@ -7,11 +7,11 @@
|
||||||
|
|
||||||
# allow passwordless access for debugging
|
# allow passwordless access for debugging
|
||||||
- |
|
- |
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
exec passwd -d ubuntu
|
exec passwd -d ubuntu
|
||||||
|
|
||||||
- |
|
- |
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# mount a NFS share for storing logs
|
# mount a NFS share for storing logs
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
- |
|
- |
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
cp /var/log/cloud-init-output.log /mnt/log
|
cp /var/log/cloud-init-output.log /mnt/log
|
||||||
|
|
||||||
- |
|
- |
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
umount /mnt/log
|
umount /mnt/log
|
||||||
|
|
||||||
- |
|
- |
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
shutdown -h -P now
|
shutdown -h -P now
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
if [ -f $(dirname $0)/../ceph-helpers-root.sh ]; then
|
if [ -f $(dirname $0)/../ceph-helpers-root.sh ]; then
|
||||||
source $(dirname $0)/../ceph-helpers-root.sh
|
source $(dirname $0)/../ceph-helpers-root.sh
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
# -*- mode:shell-script; tab-width:8; sh-basic-offset:2; indent-tabs-mode:t -*-
|
# -*- mode:shell-script; tab-width:8; sh-basic-offset:2; indent-tabs-mode:t -*-
|
||||||
# vim: ts=8 sw=8 ft=bash smarttab
|
# vim: ts=8 sw=8 ft=bash smarttab
|
||||||
|
set -x
|
||||||
|
|
||||||
source $(dirname $0)/../../standalone/ceph-helpers.sh
|
source $(dirname $0)/../../standalone/ceph-helpers.sh
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
expect_false()
|
expect_false()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
||||||
# Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
# Copyright (C) 2013,2014 Cloudwatt <libre.licensing@cloudwatt.com>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash -ex
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 Red Hat <contact@redhat.com>
|
# Copyright (C) 2014 Red Hat <contact@redhat.com>
|
||||||
#
|
#
|
||||||
|
@ -14,6 +14,7 @@
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU Library Public License for more details.
|
# GNU Library Public License for more details.
|
||||||
#
|
#
|
||||||
|
set -ex
|
||||||
|
|
||||||
: ${CORPUS:=https://github.com/ceph/ceph-erasure-code-corpus.git}
|
: ${CORPUS:=https://github.com/ceph/ceph-erasure-code-corpus.git}
|
||||||
: ${DIRECTORY:=$CEPH_ROOT/ceph-erasure-code-corpus}
|
: ${DIRECTORY:=$CEPH_ROOT/ceph-erasure-code-corpus}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
set -x
|
|
||||||
|
|
||||||
# detect data pool
|
# detect data pool
|
||||||
datapool=
|
datapool=
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# check if there is file changed while being archived
|
# check if there is file changed while being archived
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
set -x
|
|
||||||
|
|
||||||
function expect_false()
|
function expect_false()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
ceph mds set allow_new_snaps true --yes-i-really-mean-it
|
ceph mds set allow_new_snaps true --yes-i-really-mean-it
|
||||||
|
|
||||||
|
@ -28,4 +28,4 @@ rmdir .snap/snap1
|
||||||
|
|
||||||
rm file?
|
rm file?
|
||||||
|
|
||||||
echo OK
|
echo OK
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
ceph mds set allow_new_snaps true --yes-i-really-mean-it
|
ceph mds set allow_new_snaps true --yes-i-really-mean-it
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
tmp=/tmp/cephtest-mon-caps-madness
|
tmp=/tmp/cephtest-mon-caps-madness
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
function expect_false()
|
function expect_false()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
function expect_false()
|
function expect_false()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# attempt to trigger #6047
|
# attempt to trigger #6047
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
what="$1"
|
what="$1"
|
||||||
[ -z "$what" ] && what=/etc/udev/rules.d
|
[ -z "$what" ] && what=/etc/udev/rules.d
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash -ex
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
parallel=1
|
parallel=1
|
||||||
[ "$1" = "--serial" ] && parallel=0
|
[ "$1" = "--serial" ] && parallel=0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
shopt -s nullglob # fns glob expansion in expect_alloc_hint_eq()
|
shopt -s nullglob # fns glob expansion in expect_alloc_hint_eq()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash -x
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
expect_false()
|
expect_false()
|
||||||
{
|
{
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue