Skip to content

Commit 384d0d1

Browse files
committed
Set cron to use root to run v-add-sys-sftp-jail
1 parent 77a09a1 commit 384d0d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/v-add-sys-sftp-jail

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

7474
# Add v-add-sys-sftp-jail to startup
7575
if [ ! -e "/etc/cron.d/hestia-sftp" ]; then
76-
echo "@reboot admin /usr/local/hestia/bin/v-add-sys-sftp-jail" > /etc/cron.d/hestia-sftp
76+
echo "@reboot root /usr/local/hestia/bin/v-add-sys-sftp-jail" > /etc/cron.d/hestia-sftp
7777
fi
7878

7979
#----------------------------------------------------------#

install/upgrade/versions/latest.sh

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

7272
# Fix sftp jail cronjob
7373
if [ -e "/etc/cron.d/hestia-sftp" ]; then
74-
if ! cat /etc/cron.d/hestia-sftp | grep -q 'admin'; then
75-
echo "@reboot admin /usr/local/hestia/bin/v-add-sys-sftp-jail" > /etc/cron.d/hestia-sftp
74+
if ! cat /etc/cron.d/hestia-sftp | grep -q 'root'; then
75+
echo "@reboot root /usr/local/hestia/bin/v-add-sys-sftp-jail" > /etc/cron.d/hestia-sftp
7676
fi
7777
fi
7878

0 commit comments

Comments
 (0)