Skip to content

Commit b2d257d

Browse files
committed
Adjust keys permission
1 parent d745459 commit b2d257d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bin/v-generate-api-key

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ HASH=$(keygen)
2424
#----------------------------------------------------------#
2525

2626
if [ ! -d ${KEYS} ]; then
27-
mkdir -p ${KEYS}
27+
mkdir -p ${KEYS}
28+
chown admin:root ${KEYS}
29+
chmod 750 ${KEYS}
2830
fi
2931

3032
if [[ -e ${KEYS}${HASH} ]] ; then

install/upgrade/versions/1.3.3.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99

1010
echo '[ * ] Update permissions'
11-
setfacl -m "g:hestia-users:---" "$HESTIA"
12-
11+
chmod 750 "$HESTIA/data/keys"
12+
chown admin:root "$HESTIA/data/keys"
1313

1414
if [[ ! -e /etc/hestiacp/hestia.conf ]]; then
1515
echo '[ * ] Create global Hestia config'

0 commit comments

Comments
 (0)