File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,12 @@ for user in $(grep "$HOMEDIR" /etc/passwd |egrep "$shells" |cut -f 1 -d:); do
6969 $BIN /v-add-user-sftp-jail $user
7070done
7171
72+ # Add v-add-sys-sftp-jail to startup
73+ if [ ! -e " /etc/cron.d/hestia-sftp" ]; then
74+ echo " @reboot /usr/local/hestia/bin/v-add-sys-sftp-jail" > /etc/cron.d/hestia-sftp
75+ chmod +x /etc/rc.local
76+ fi
77+
7278# ----------------------------------------------------------#
7379# Hestia #
7480# ----------------------------------------------------------#
Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ if [ "$restart" = 'yes' ]; then
6565 fi
6666fi
6767
68+ # Remove v-add-sys-sftp-jail to startup
69+ if [ ! -e " /etc/cron.d/hestia-sftp" ]; then
70+ rm " @reboot /usr/local/hestia/bin/v-add-sys-sftp-jail" > /etc/cron.d/hestia-sftp
71+ fi
72+
6873
6974# ----------------------------------------------------------#
7075# Hestia #
You can’t perform that action at this time.
0 commit comments