]> git-server-git.apps.pok.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)
committerKefu Chai <tchaikov@gmail.com>
Sat, 3 Feb 2024 14:36:50 +0000 (22:36 +0800)
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>
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)
-       :
+       :
     ;;
 
     *)