Skip to content

Commit 10ca8ad

Browse files
authored
Fix: User syslog does not exists (hestiacp#2599)
1 parent abbb22d commit 10ca8ad

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

bin/v-add-sys-sftp-jail

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fi
8686

8787
# Add v-add-sys-sftp-jail to startup
8888
if [ ! -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
9090
fi
9191

9292
#----------------------------------------------------------#

install/upgrade/versions/1.6.0.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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
9096
fi

0 commit comments

Comments
 (0)