diff options
author | M.Gergo | 2018-03-28 20:48:05 +0200 |
---|---|---|
committer | M.Gergo | 2018-03-28 20:48:05 +0200 |
commit | cf30dceb15fa65f503c2a3f31f95b08ce1c65d35 (patch) | |
tree | 3d51eabdf4c9bc7a3daca03d265c052fb0601ac2 /mayor-installer/install.d/40binary.sh | |
parent | 20a9412f1f5bc7b7e40ffb24e262cdf20420983c (diff) | |
download | mayor-cf30dceb15fa65f503c2a3f31f95b08ce1c65d35.tar.gz mayor-cf30dceb15fa65f503c2a3f31f95b08ce1c65d35.zip |
installer javítás 1
Diffstat (limited to 'mayor-installer/install.d/40binary.sh')
-rwxr-xr-x | mayor-installer/install.d/40binary.sh | 5 |
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/ |