Skip to content

Commit 10885f8

Browse files
committed
Fixed cronjob issue with sftp jail due to missing user
1 parent 37dbf89 commit 10885f8

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ All notable changes to this project will be documented in this file.
3434
- Performance: Do not load complete notifications list on every page load, reduced load time from over 1sec to under 100ms
3535
- Performance: Do not resolve ip when listing iptables rules. Server tab could take multiple minutes to load in some cases.
3636
- Update jQuery to 3.4.1 and adjust includes.
37+
- Fixed cronjob issue with sftp jail due to missing user.
3738

3839
## [1.0.5] - 2019-08-06 - Hotfix
3940
### Bugfixes

bin/v-add-sys-sftp-jail

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ done
7373

7474
# Add v-add-sys-sftp-jail to startup
7575
if [ ! -e "/etc/cron.d/hestia-sftp" ]; then
76-
echo "@reboot /usr/local/hestia/bin/v-add-sys-sftp-jail" > /etc/cron.d/hestia-sftp
76+
echo "@reboot admin /usr/local/hestia/bin/v-add-sys-sftp-jail" > /etc/cron.d/hestia-sftp
7777
fi
7878

7979
#----------------------------------------------------------#

install/upgrade/versions/latest.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,10 @@ fi
6767
if [ -d /home/admin ]; then
6868
setfacl -m "g:admin:r-x" /home/admin
6969
fi
70+
71+
# Fix sftp jail cronjob
72+
if [ -e "/etc/cron.d/hestia-sftp" ]; then
73+
if ! cat /etc/cron.d/hestia-sftp | grep -q 'admin'; then
74+
echo "@reboot admin /usr/local/hestia/bin/v-add-sys-sftp-jail" > /etc/cron.d/hestia-sftp
75+
fi
76+
fi

0 commit comments

Comments
 (0)