summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorKefu Chai <tchaikov@gmail.com>2024-01-17 16:52:48 +0100
committerKefu Chai <tchaikov@gmail.com>2024-02-03 15:36:50 +0100
commit013eebf5357666cf2509a37eecf69ef4ac349321 (patch)
treea5052e211b2c15d5cb4b57c8e2392dc90a54a08e /debian
parentdebian/cephadm.postinst: specify --home when adduser (diff)
downloadceph-013eebf5357666cf2509a37eecf69ef4ac349321.tar.xz
ceph-013eebf5357666cf2509a37eecf69ef4ac349321.zip
debian/cephadm.postinst: replace tab with spaces
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>
Diffstat (limited to 'debian')
-rw-r--r--debian/cephadm.postinst14
1 files changed, 7 insertions, 7 deletions
diff --git a/debian/cephadm.postinst b/debian/cephadm.postinst
index eaa574cbb63..274b7f7846a 100644
--- a/debian/cephadm.postinst
+++ b/debian/cephadm.postinst
@@ -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)
- :
+ :
;;
*)