Browse Source

Fixed /root/.gnupg permissions (#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
Gerardo 4 years ago
parent
commit
8894d24836
1 changed files with 1 additions and 1 deletions
  1. 1 1
      install/upgrade/versions/1.5.5.sh

+ 1 - 1
install/upgrade/versions/1.5.5.sh

@@ -29,7 +29,7 @@ done
 
 echo "[ * ] Updating apt keyring configuration..."
 
-mkdir /root/.gnupg
+mkdir -p /root/.gnupg && chmod 700 /root/.gnupg
 
 if [ ! -f "/usr/share/keyrings/nginx-keyring.gpg" ]; then 
     # Get Architecture