diff --git a/iop/scripts/genconfig.sh b/iop/scripts/genconfig.sh index a167b4286..c07984536 100755 --- a/iop/scripts/genconfig.sh +++ b/iop/scripts/genconfig.sh @@ -436,6 +436,10 @@ function genconfig { v "chmod 0600 $FILEDIR/etc/shadow" chmod 0600 "$FILEDIR/etc/shadow" fi + if [ -d "$FILEDIR/etc/ssl/private" ]; then + v "find $FILEDIR/etc/ssl/private -type d -exec chmod 0700 '{}' ';' -o -type f -exec chmod 0600 '{}' ';'" + find "$FILEDIR/etc/ssl/private" -type d -exec chmod 0700 '{}' ';' -o -type f -exec chmod 0600 '{}' ';' + fi # Set target version local git_version diff --git a/iop/scripts/genconfig_min.sh b/iop/scripts/genconfig_min.sh index e99dde554..df47586da 100644 --- a/iop/scripts/genconfig_min.sh +++ b/iop/scripts/genconfig_min.sh @@ -410,6 +410,10 @@ function genconfig_min { v "chmod 0600 $FILEDIR/etc/shadow" chmod 0600 "$FILEDIR/etc/shadow" fi + if [ -d "$FILEDIR/etc/ssl/private" ]; then + v "find $FILEDIR/etc/ssl/private -type d -exec chmod 0700 '{}' ';' -o -type f -exec chmod 0600 '{}' ';'" + find "$FILEDIR/etc/ssl/private" -type d -exec chmod 0700 '{}' ';' -o -type f -exec chmod 0600 '{}' ';' + fi # Set target version local git_version