File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 8686
8787# Add v-add-sys-sftp-jail to startup
8888if [ ! -e " /etc/cron.d/hestia-sftp" ]; then
89- echo " @reboot root sleep 60 && /usr/local/hestia/bin/v-add-sys-sftp-jail" > /etc/cron.d/hestia-sftp
89+ echo " @reboot root sleep 60 && /usr/local/hestia/bin/v-add-sys-sftp-jail > /dev/null " > /etc/cron.d/hestia-sftp
9090fi
9191
9292# ----------------------------------------------------------#
Original file line number Diff line number Diff line change @@ -87,4 +87,10 @@ if [ -n "$PHPMYADMIN_KEY" ]; then
8787 echo " [ * ] Refresh PMA SSO key due to update phpmyadmin"
8888 $BIN /v-delete-sys-pma-sso quiet
8989 $BIN /v-add-sys-pma-sso quiet
90+ fi
91+
92+ # Mute output v-add-sys-sftp-jail out put then enabling sftp on boot
93+ if [ -f " /etc/cron.d/hestia-sftp" ]; then
94+ rm /etc/cron.d/hestia-sftp
95+ echo " @reboot root sleep 60 && /usr/local/hestia/bin/v-add-sys-sftp-jail > /dev/null" > /etc/cron.d/hestia-sftp
9096fi
You can’t perform that action at this time.
0 commit comments