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