unlimitted hosting packages

This commit is contained in:
Serghey Rodin 2015-02-17 18:25:50 +02:00
commit 61288a2355
6 changed files with 108 additions and 41 deletions

View file

@ -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