]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
debian/cephadm.postinst: replace tab with spaces
authorKefu Chai <tchaikov@gmail.com>
Wed, 17 Jan 2024 15:52:48 +0000 (23:52 +0800)
committerMatthew Vernon <mvernon@wikimedia.org>
Thu, 22 Feb 2024 10:06:29 +0000 (10:06 +0000)
for better readability, and to be more consistent with the rest
of this file, and other .postinst scripts of this project.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 013eebf5357666cf2509a37eecf69ef4ac349321)

debian/cephadm.postinst

index eaa574cbb634a24897b025ed836d39a9097565fc..274b7f7846a6906503f88f2202e70b5ed7a8d45e 100644 (file)
@@ -43,19 +43,19 @@ case "$1" in
 
        # set up (initially empty) .ssh/authorized_keys file
        if ! test -d /home/cephadm/.ssh; then
-          mkdir /home/cephadm/.ssh
-          chown --reference /home/cephadm /home/cephadm/.ssh
-          chmod 0700 /home/cephadm/.ssh
+           mkdir /home/cephadm/.ssh
+           chown --reference /home/cephadm /home/cephadm/.ssh
+           chmod 0700 /home/cephadm/.ssh
        fi
        if ! test -e /home/cephadm/.ssh/authorized_keys; then
-          touch /home/cephadm/.ssh/authorized_keys
-          chown --reference /home/cephadm /home/cephadm/.ssh/authorized_keys
-          chmod 0600 /home/cephadm/.ssh/authorized_keys
+           touch /home/cephadm/.ssh/authorized_keys
+           chown --reference /home/cephadm /home/cephadm/.ssh/authorized_keys
+           chmod 0600 /home/cephadm/.ssh/authorized_keys
        fi
 
     ;;
     abort-upgrade|abort-remove|abort-deconfigure)
-       :
+       :
     ;;
 
     *)