13 lines
116 B
Bash
13 lines
116 B
Bash
#!/bin/bash
|
|
|
|
if [ $UID -ne 0 ]; then
|
|
sudo $0 $@
|
|
exit
|
|
fi
|
|
|
|
cd /var/www
|
|
mkdir $1
|
|
chown :www-data $1
|
|
chmod 2775 $1
|
|
|