Skip to content

Commit

Permalink
fix file header for *.sh and *.py
Browse files Browse the repository at this point in the history
Change-Id: Ia779ed80ee7175d83b853d183edd6515b4dceb51
  • Loading branch information
qinyi authored and wu-hanqing committed Jul 25, 2020
1 parent 40de2c9 commit 616889c
Show file tree
Hide file tree
Showing 29 changed files with 65 additions and 56 deletions.
5 changes: 3 additions & 2 deletions curve-ansible/roles/install_package/files/disk_uuid_repair.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf8 -*-

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +17,6 @@
# limitations under the License.
#

#!/usr/bin/env python
# -*- coding: utf8 -*-
# 检测磁盘上disk.meta中记录的uuid与当前磁盘的实际uuid是否相符合
# 如果不符合, 更新为当前的uuid

Expand Down
4 changes: 2 additions & 2 deletions curve-chunkserver/home/nbs/chunkserver_ctl.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +16,6 @@
# limitations under the License.
#

#!/bin/bash

# default config path
confPath=/etc/curve/chunkserver.conf
DATA_DIR=/data
Expand Down
3 changes: 2 additions & 1 deletion curve-chunkserver/home/nbs/chunkserver_deploy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,7 +16,6 @@
# limitations under the License.
#

#!/bin/bash
#confirm提示,防止误操作
function do_confirm {
echo "This deployment script will format the disk and delete all the data."
Expand Down
5 changes: 3 additions & 2 deletions curve-chunkserver/home/nbs/disk_uuid_repair.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf8 -*-

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +17,6 @@
# limitations under the License.
#

#!/usr/bin/env python
# -*- coding: utf8 -*-
# 检测磁盘上disk.meta中记录的uuid与当前磁盘的实际uuid是否相符合
# 如果不符合, 更新为当前的uuid

Expand Down
4 changes: 2 additions & 2 deletions curve-mds/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +16,6 @@
# limitations under the License.
#

#!/bin/bash

set -e

logdir=/data/log/curve
Expand Down
4 changes: 2 additions & 2 deletions curve-mds/home/nbs/etcd-daemon.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +16,6 @@
# limitations under the License.
#

#!/bin/bash

# 默认配置文件
confPath=/etc/curve/etcd/etcd.conf.yml

Expand Down
4 changes: 2 additions & 2 deletions curve-mds/home/nbs/mds-daemon.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +16,6 @@
# limitations under the License.
#

#!/bin/bash

# curve-mds路径
curveBin=/usr/bin/curve-mds

Expand Down
4 changes: 2 additions & 2 deletions curve-sdk/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +16,6 @@
# limitations under the License.
#

#!/bin/bash

set -e

logdir=/data/log/curve
Expand Down
3 changes: 2 additions & 1 deletion curvefs_python/configure.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,7 +16,6 @@
# limitations under the License.
#

#!/bin/bash
echo "********************************************************************"
echo "***********Prepare for curvefs python API build env.****************"
echo "********************************************************************"
Expand Down
3 changes: 2 additions & 1 deletion curvefs_python/curve
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /bin/bash

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,6 +16,5 @@
# limitations under the License.
#

#! /bin/bash
cd /usr/curvefs/
python curvefs_tool.py $@
6 changes: 3 additions & 3 deletions curvefs_python/parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# coding=utf-8

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,9 +17,6 @@
# limitations under the License.
#

#!/usr/bin/env python
# coding=utf-8

import argparse

def get_parser():
Expand Down
5 changes: 3 additions & 2 deletions curvefs_python/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# coding=utf-8

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +17,6 @@
# limitations under the License.
#

#!/usr/bin/env python
# coding=utf-8
import os

def exec_cmd(cmd):
Expand Down
3 changes: 2 additions & 1 deletion curvesnapshot_python/configure.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,7 +16,6 @@
# limitations under the License.
#

#!/bin/sh
echo "********************************************************************"
echo "***********Prepare for curvefs python API build env.****************"
echo "********************************************************************"
Expand Down
7 changes: 3 additions & 4 deletions curvesnapshot_python/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# coding=utf-8

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,10 +17,6 @@
# limitations under the License.
#

#!/usr/bin/env python
# coding=utf-8


import curvesnapshot

ret = curvesnapshot.Init("./client.conf");
Expand Down
4 changes: 2 additions & 2 deletions deploy/local/chunkserver/start_chunkservers_locally.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +16,6 @@
# limitations under the License.
#

#!/bin/sh

home=deploy/local/chunkserver
loghome=log
#home=.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +16,6 @@
# limitations under the License.
#

#!/bin/sh

home=/curve/deploy/local/chunkserver
#home=.
conf=${home}/conf
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +16,6 @@
# limitations under the License.
#

#!/bin/sh

home=/curve/deploy/local/chunkserver
#home=.
conf=${home}/conf
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +16,6 @@
# limitations under the License.
#

#!/bin/sh

home=/curve/deploy/local/chunkserver
#home=.
conf=${home}/conf
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +16,6 @@
# limitations under the License.
#

#!/bin/sh

home=/curve/deploy/local/chunkserver
#home=.
conf=${home}/conf
Expand Down
4 changes: 2 additions & 2 deletions deploy/local/chunkserver/stop_chunkservers_locally.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,6 +16,4 @@
# limitations under the License.
#

#!/bin/bash

killall -9 chunkserver
4 changes: 2 additions & 2 deletions deploy/local/test/start_multicopyset_io_test.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,8 +16,6 @@
# limitations under the License.
#

#!/bin/sh

bin=bazel-bin
#bin=.
raftconf="127.0.0.1:8200:0,127.0.0.1:8201:0,127.0.0.1:8202:0"
Expand Down
3 changes: 2 additions & 1 deletion mk-deb.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,7 +16,6 @@
# limitations under the License.
#

#!/bin/bash
dir=`pwd`
#step1 清除生成的目录和文件
bazel clean
Expand Down
3 changes: 2 additions & 1 deletion mk-tar.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -14,7 +16,6 @@
# limitations under the License.
#

#!/bin/sh
dir=`pwd`
#step1 清除生成的目录和文件
bazel clean
Expand Down
4 changes: 2 additions & 2 deletions monitor/curve-monitor.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -16,8 +18,6 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

#!/bin/sh

#sh update_dashboard.sh
#echo "update dashboards success!"

Expand Down
6 changes: 3 additions & 3 deletions monitor/target_json.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# coding=utf-8

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -16,9 +19,6 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

#!/usr/bin/env python
# coding=utf-8

import os
import time
import json
Expand Down
4 changes: 2 additions & 2 deletions monitor/update_dashboard.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

#
# Copyright (c) 2020 NetEase Inc.
#
Expand All @@ -16,8 +18,6 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

#!/bin/bash

# Updates local dashboard configurations by retrieving
# the new version from a Grafana instance.
#
Expand Down
Loading

0 comments on commit 616889c

Please sign in to comment.