Skip to content

Commit 23b6e89

Browse files
authored
As $ROOT_USER (Currenlty admin) won't have sudo permision (hestiacp#4682)
And we allready write it into /etc/cron.d/hestiaweb we should check if exsists there and not under root user
1 parent 82a2a1b commit 23b6e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-letsencrypt-domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ if [ "$?" -ne '0' ]; then
580580
fi
581581

582582
# Adding LE autorenew cronjob
583-
if [ -z "$(grep v-update-letsen "$HESTIA/data/users/$ROOT_USER/cron.conf")" ]; then
583+
if [ -z "$(grep v-update-letsen "/etc/cron.d/hestiaweb")" ]; then
584584
min=$(generate_password '012345' '2')
585585
hour=$(generate_password '1234567' '1')
586586
echo "$min $hour * * * sudo /usr/local/hestia/bin/v-update-letsencrypt-ssl" > /etc/cron.d/hestiaweb

0 commit comments

Comments
 (0)