Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-5) was last changed on 14-Apr-2010 14:30 by RaffaelePedrini  

This page was created on 14-Apr-2010 14:30 by RaffaelePedrini

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 added 2 lines
%%prettify
{{{
At line 3 changed one line
if [ "$#" -lt 3 ] ; then
if [ "$#" -lt 4 ] ; then
At line 5 changed one line
echo "Usage : addvirtual dominio utente database"
echo "Usage : addvirtual dominio utente nomedatabase tipodatabase[db2|ps]"
At line 38 changed one line
if [ ! -f /opt/template/template.xml ] ; then
if [ ! -f /opt/template/template_$4.xml ] ; then
At line 40 changed one line
echo "Il file /opt/template/template.xml non esiste"
echo "Il file /opt/template/template_$4.xml non esiste"
At line 52 changed one line
sed -e s/LLLL/$1/g /opt/template/template.xml | sed -e s/DDDD/$3/g - > /etc/apache2/conf.d/vhost.xml/$1.xml
sed -e s/LLLL/$1/g /opt/template/template_$4.xml | sed -e s/DDDD/$3/g - > /etc/apache2/conf.d/vhost.xml/$1.xml
At line 61 added 14 lines
# Crea il file di configurazione per LogRotate
sed -e s/LLLL/$1/g /opt/template/logrotate.conf > /home/www/www.$1/logs/logrotate.$1.conf
# Crea utente
useradd --shell /bin/false --home /home/www/www.$1/htdocs $2
# Assegna i permessi alle cartelle pubbliche
chown -R $2 /home/www/www.$1/htdocs
# Crea password
passwd $2
}}}
/%
Version Date Modified Size Author Changes ... Change note
5 14-Apr-2010 14:30 1.868 kB RaffaelePedrini to previous
4 14-Apr-2010 14:30 1.868 kB RaffaelePedrini to previous | to last
3 14-Apr-2010 14:30 1.836 kB RaffaelePedrini to previous | to last
2 14-Apr-2010 14:30 1.499 kB RaffaelePedrini to previous | to last
1 14-Apr-2010 14:30 1.472 kB RaffaelePedrini to last
« This page (revision-5) was last changed on 14-Apr-2010 14:30 by RaffaelePedrini