File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 7373
7474# Add v-add-sys-sftp-jail to startup
7575if [ ! -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
7777fi
7878
7979# ----------------------------------------------------------#
Original file line number Diff line number Diff line change 7171
7272# Fix sftp jail cronjob
7373if [ -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
7777fi
7878
You can’t perform that action at this time.
0 commit comments