Hello!
I'm trying to run this script on my VPS but I get the following error from the quota script.
Code:
root@chougard:~# /var/www/ispcp/engine/quota/ispcp-dsk-quota
"my" variable $cmd_du masks earlier declaration in same scope at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 99.
Scalar found where operator expected at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 106, near "my $quotacheck = $cmd_quota -u $domain_uid -d $main::cfg{APACHE_WWW_DIR}/$domain_name"
(Might be a runaway multi-line // string starting on line 105)
(Do you need to predeclare my?)
"my" variable $size masks earlier declaration in same scope at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 112.
syntax error at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 105, near "$main::cfg{APACHE_WWW_DIR"
Global symbol "$domain_name" requires explicit package name at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 105.
Global symbol "$quotacheck" requires explicit package name at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 105.
syntax error at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 106, near "my $quotacheck = $cmd_quota -u $domain_uid -d $main::cfg{APACHE_WWW_DIR}/$domain_name"
Global symbol "$domain_name" requires explicit package name at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 106.
syntax error at /var/www/ispcp/engine/quota/ispcp-dsk-quota line 157, near "}"
Execution of /var/www/ispcp/engine/quota/ispcp-dsk-quota aborted due to compilation errors.
Any idea how to fix it?
Thanks!