diff options
Diffstat (limited to '')
-rwxr-xr-x | etherpad/bin/setup-mysql-db.sh | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/etherpad/bin/setup-mysql-db.sh b/etherpad/bin/setup-mysql-db.sh index d823a9e..45901ac 100755 --- a/etherpad/bin/setup-mysql-db.sh +++ b/etherpad/bin/setup-mysql-db.sh @@ -14,17 +14,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -if [ `whoami` != "root" ]; then - echo "Must run as root, i.e., sudo $0" - exit 1 -fi - db="etherpad" echo "Creating etherpad ${db}..." -echo "create database ${db};" | ${mysql} -u root +echo "create database ${db};" | ${mysql} -u root -p echo "Granting priviliges..." -echo "grant all privileges on ${db}.* to 'etherpad'@'localhost' identified by 'password';" | ${mysql} -u root +echo "grant all privileges on ${db}.* to 'etherpad'@'localhost' identified by 'password';" | ${mysql} -u root -p echo "Success" |