aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-installer/install.d/40binary.sh
diff options
context:
space:
mode:
authorM.Gergo2018-03-28 20:48:05 +0200
committerM.Gergo2018-03-28 20:48:05 +0200
commitcf30dceb15fa65f503c2a3f31f95b08ce1c65d35 (patch)
tree3d51eabdf4c9bc7a3daca03d265c052fb0601ac2 /mayor-installer/install.d/40binary.sh
parent20a9412f1f5bc7b7e40ffb24e262cdf20420983c (diff)
downloadmayor-cf30dceb15fa65f503c2a3f31f95b08ce1c65d35.tar.gz
mayor-cf30dceb15fa65f503c2a3f31f95b08ce1c65d35.zip
installer javítás 1
Diffstat (limited to 'mayor-installer/install.d/40binary.sh')
-rwxr-xr-xmayor-installer/install.d/40binary.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/mayor-installer/install.d/40binary.sh b/mayor-installer/install.d/40binary.sh
index bc2716af..e0f0598b 100755
--- a/mayor-installer/install.d/40binary.sh
+++ b/mayor-installer/install.d/40binary.sh
@@ -32,6 +32,11 @@ fi
echo -e "\n Az /usr/local/sbin/ alá létrejött a mayor szimbolikus link.";
fi
if [ ! -e $MAYORDIR/config/main.conf ]; then cp $MAYORDIR/config/main.conf.example $MAYORDIR/config/main.conf; fi
+ # A BASEDIR változó pontosítása
+ BDIR=$(echo $MAYORDIR | sed -e 's:\/:\\\/:g')
+ sed -e "s/BASEDIR=\"\/var\/mayor\"/BASEDIR=\"$BDIR\"/g" -i $MAYORDIR/config/main.conf
+ # A webserver_user lecserélése, ha nem www-data lenne
+ sed -e "s/WEB_SERVER_USER=\"www-data\"/WEB_SERVER_USER=\"$WEB_SERVER_USER\"/g" -i $MAYORDIR/config/main.conf
# A konfig könyvtár védelme
chown -R $WEB_SERVER_USER $MAYORDIR/config/
chmod 700 $MAYORDIR/config/