Skip to content

Commit 8894d24

Browse files
authored
Fixed /root/.gnupg permissions (hestiacp#2383)
* Fixed /root/.gnupg permissions Set /root/.gnupg permissions to 700 when the directory is created * added -p to mkdir /root/.gnupg Fixed error if /root/.gnupg already exist
1 parent fad19a6 commit 8894d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/upgrade/versions/1.5.5.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ done
2929

3030
echo "[ * ] Updating apt keyring configuration..."
3131

32-
mkdir /root/.gnupg
32+
mkdir -p /root/.gnupg && chmod 700 /root/.gnupg
3333

3434
if [ ! -f "/usr/share/keyrings/nginx-keyring.gpg" ]; then
3535
# Get Architecture

0 commit comments

Comments
 (0)