aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-installer-fcgi-mod/fcgi_install.d/90chown.sh
diff options
context:
space:
mode:
authorM.Gergo2019-03-08 20:50:48 +0100
committerM.Gergo2019-03-08 20:50:48 +0100
commit3dab26c6797b32926287f22a041380080551060b (patch)
treebb4ba41398083a054e956e25f2d8c72bcdd0a7a0 /mayor-installer-fcgi-mod/fcgi_install.d/90chown.sh
parentf70027ffbedce10f412868a7bf9b0b67b113f1b1 (diff)
downloadmayor-3dab26c6797b32926287f22a041380080551060b.tar.gz
mayor-3dab26c6797b32926287f22a041380080551060b.zip
pici rendrakás
Diffstat (limited to 'mayor-installer-fcgi-mod/fcgi_install.d/90chown.sh')
-rwxr-xr-xmayor-installer-fcgi-mod/fcgi_install.d/90chown.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/mayor-installer-fcgi-mod/fcgi_install.d/90chown.sh b/mayor-installer-fcgi-mod/fcgi_install.d/90chown.sh
deleted file mode 100755
index 1e090128..00000000
--- a/mayor-installer-fcgi-mod/fcgi_install.d/90chown.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-
-echo -e "A könyvtárak jogosultságainak beállítása\n\n"
-read -n 1 -p "beállíthatom? (i/N)" -s DO
-if [ "$DO" != "i" ]; then echo -e "\nNem.\n"; exit 1; fi
-
-
-if [ $MAYORUSER == "" ] || [ $MAYORDIR == "" ]; then echo -e "A MAYOR(DIR/USER) változó üres! .....kilépek\n" ; exit 1 ; fi
-
-chown -R "$MAYORUSER:$MAYORUSER" /home/$MAYORUSER/ ## Ez esetben a MAYORDIR a /home/xxx/mayor-ra mutat
-
-find /home/$MAYORUSER/ -type f -print0 | xargs -0 chmod 0644
-find /home/$MAYORUSER/ -type d -print0 | xargs -0 chmod 0751
-find /home/$MAYORUSER/ -name '*.php' -print0 | xargs -0 chmod 0640
-find /home/$MAYORUSER/mayor/ -name '*.sh' -print0 | xargs -0 chmod 0600
-find /home/$MAYORUSER/mayor/bin/ -name '*.sh' -print0 | xargs -0 chown root:root
-find /home/$MAYORUSER/mayor/ -name '*.conf' -print0 | xargs -0 chmod 0600
-
-# a csomagoló jogainak visszaállítása
-chmod -R 600 "/home/$MAYORUSER/mayor/www-bin/"
-chmod +x "/home/$MAYORUSER/mayor/www-bin/php7.fcgi"
-
-## de azért idemásolom az eredetit is, biztos-ami-biztos
-chmod 700 $MAYORDIR/config/
-# A main.conf védelme
-chown root:root $MAYORDIR/config/main.conf
-chmod 600 $MAYORDIR/config/main.conf
-
-
-echo -e "...kész.\n" \ No newline at end of file