From 4fbfd2f800e86669f2578952365293e98123f250 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 3 Feb 2019 12:00:51 -0600 Subject: [PATCH] Update install-multicraft.sh --- install-multicraft.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install-multicraft.sh b/install-multicraft.sh index fe19c86..14f9d79 100755 --- a/install-multicraft.sh +++ b/install-multicraft.sh @@ -68,8 +68,11 @@ ProtectedConf="/protected/config/config.php" cd ${WebRoot}/multicraft/ mv protected / mv ${ProtectedConf}.dist ${ProtectedConf} +chown -rf www-data:www-data ${WebRoot}/multicraft +chown -rf www-data:www-data /protected chmod 777 assets -chmod -rf 777 /protected +chmod -rf 775 ${WebRoot}/multicraft +chmod -rf 775 /protected sed -i 's/dirname(__FILE__)./\E/g' index.php rm -fv api.php install.php @@ -91,7 +94,7 @@ Memory="$((${MemTotal} / 1024))" # Multicraft Config MulticraftConf="/opt/multicraft/multicraft.conf" -sed -i 's/user =\(.*\)/\Euser = www-data/g' ${MulticraftConf} +sed -i 's/user =\(.*\)/\Euser = root/g' ${MulticraftConf} sed -i 's/webUser =\(.*\)/\EwebUser = /g' ${MulticraftConf} sed -i 's/\#id =\(.*\)/\Eid = 1/g' ${MulticraftConf} sed -i 's/\#database = mysql\(.*\)/\Edatabase = mysql:host=10.5.10.56:3307;dbname=multicraft_daemon/g' ${MulticraftConf}