mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
unlimitted hosting packages
This commit is contained in:
parent
fd964610a1
commit
61288a2355
6 changed files with 108 additions and 41 deletions
|
@ -113,8 +113,8 @@ is_package_full() {
|
|||
CRON_JOBS) used=$(wc -l $USER_DATA/cron.conf |cut -f1 -d \ );;
|
||||
esac
|
||||
limit=$(grep "^$1=" $USER_DATA/user.conf | cut -f 2 -d \' )
|
||||
if [ "$used" -ge "$limit" ]; then
|
||||
echo "Error: Limit reached / Upgrade package"
|
||||
if [ "$limit" != 'unlimited' ] && [ "$used" -ge "$limit" ]; then
|
||||
echo "Error: Limit is reached, please upgrade hosting package"
|
||||
log_event "$E_LIMIT" "$EVENT"
|
||||
exit $E_LIMIT
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue