Skip to content

Commit e2080f5

Browse files
committed
Write manage-password file with mode 0600
1 parent 6dd7975 commit e2080f5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bin/ghe-restore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ if $clean_restore; then
9999
cat "$GHE_RESTORE_SNAPSHOT_PATH/manage-password" |
100100
ghe-ssh "$host" -- \
101101
"sudo -u git dd of='$GHE_REMOTE_DATA_USER_DIR/common/manage-password' 2>&1"
102+
ghe-ssh "$host" -- \
103+
"sudo -u git chmod 0600 '$GHE_REMOTE_DATA_USER_DIR/common/manage-password'"
102104
fi
103105

104106
echo "

0 commit comments

Comments
 (0)