Set cron to use root to run v-add-sys-sftp-jail
@@ -73,7 +73,7 @@ done
# Add v-add-sys-sftp-jail to startup
if [ ! -e "/etc/cron.d/hestia-sftp" ]; then
- echo "@reboot admin /usr/local/hestia/bin/v-add-sys-sftp-jail" > /etc/cron.d/hestia-sftp
+ echo "@reboot root /usr/local/hestia/bin/v-add-sys-sftp-jail" > /etc/cron.d/hestia-sftp
fi
#----------------------------------------------------------#
@@ -71,8 +71,8 @@ fi
# Fix sftp jail cronjob
if [ -e "/etc/cron.d/hestia-sftp" ]; then
- if ! cat /etc/cron.d/hestia-sftp | grep -q 'admin'; then
+ if ! cat /etc/cron.d/hestia-sftp | grep -q 'root'; then