13 lines
189 B
Bash
13 lines
189 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
group=$2
|
||
|
if [ -z $group ]
|
||
|
then
|
||
|
group=$1
|
||
|
fi
|
||
|
|
||
|
sudo chown $1:$group /var/www/html/ninegate -R
|
||
|
sudo chmod +w /var/www/html/ninegate -R
|
||
|
sudo chmod g+rw /var/www/html/ninegate -R
|
||
|
|