#!/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