voila, j'ai écrit un petit script qui me permet d'ajouter un "compte web" (apache/php/cgi/ftp local & publique/compte mail & ssh) ; jusque là, tout va bien
Mais.. car il y a toujours un mais, je voudrais limité la création de la base de données (1 par personne) à une taille fixe, 100Mo.
Comment pourrais-je limiter la base de facon automatique ?
j'utilise (pour créer le compte mySQL) :
CODE
/usr/bin/mysqladmin -u root -p $rootpass create $webaccount_name
/usr/bin/mysql -u root --password=$rootpass mysql <<END_COMMANDS
GRANT ALL PRIVILEGES ON $webaccount_name.* TO "$webaccount_name"@"$webaccount_domain" IDENTIFIED BY '$webaccount_password';
FLUSH PRIVILEGES;
END_COMMANDS
/usr/bin/mysql -u root --password=$rootpass mysql <<END_COMMANDS
GRANT ALL PRIVILEGES ON $webaccount_name.* TO "$webaccount_name"@"$webaccount_domain" IDENTIFIED BY '$webaccount_password';
FLUSH PRIVILEGES;
END_COMMANDS
merci;