Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/ |
Current File : //var/www/webxanpassen2.sh |
#!/bin/sh ###################################################################### # Script zur Anpassung von User und Group innerhalb www/webX ###################################################################### # SELECT kunde FROM kunden LIMIT 0 , 200 MPATH="/var/www" # Hauptpfad cd $MPATH #warray=(webX1 webX2) #warray=(web1 web2 web3 web4 web5 web6 web7 web8 web9 web10 web11 web12 web13 web14 web15 web16 web17 web18 web19 web20 web21 web22 web23 web24 web25 web26 web27 web28 web29 web30 web31 web32 web33 web34 web35 web36 web37 web38 web39 web40 web41 web42) #warray=(web43 web44 web45 web56 web47 web48 web49 web50 web51 web52 web53 web54 web55 web56 web57 web58 web59 web60 web61 web62 web63 web64 web65 web66 web67 web68 web69 web70 web71 web72 web73 web74 web75 web76 web77 web78 web79 web80 web81 web82) warray=(web83 web84 web85 web86 web87 web88 web89 web90 web91 web92 web93 web94 web95 web96 web97 web98 web99 web100 web101 web102 web103 web104 web105 web106 web107 web108 web109 web110 web111 web112 web113 web114 web115 web116 web117 web118 web119 web120 web121 web122 web123 web124 web125 web126 web127) for var in ${warray[*]} do echo "web: $var" WEBX=$var # WebUser z.b web11 WEBXP="$MPATH/$WEBX"; # USER/GROUP ROOTROOT="chown root.root" ROOTWWW="chown root.www-data" ROOTWEBX="chown root.$WEBX" WEBXWWW="chown $WEBX.www-data" WEBXWEBX="chown $WEBX.$WEBX" RROOTROOT="chown -R root.root" RWEBXWEBX="chown -R $WEBX.$WEBX" RROOTWWW="chown -R root.www-data" RROOTWEBX="chown -R root.$WEBX" RWEBXWWW="chown -R $WEBX.www-data" # 1. /var/www/webX $ROOTROOT $WEBXP cd $WEBX # 2. web9 web9 .forward cd $WEBXP $WEBXWEBX $WEBXP/.forward # 3. root root .configs $RROOTROOT $WEBXP/.configs # 5. root root atd $RROOTWWW $WEBXP/atd # 6.root web9 backup $RROOTWEBX $WEBXP/backup # 7. web9 www-data files $WEBXWWW $WEBXP/files # 7a. web9 www-data files/* $RWEBXWEBX $WEBXP/files/* # 8. web9 www-data html $WEBXWWW $WEBXP/html cd $WEBXP/html #pwd # 8a. web9 www-data html/* $RWEBXWEBX $WEBXP/html/* cd $WEBXP # 9. root web9 log $ROOTWEBX $WEBXP/log # 10. root root log/* $RROOTROOT $WEBXP/log/* # 11. web9 www-data phptmp und phptmp $RWEBXWWW $WEBXP/phptmp # 12. web9 restore und restore/* $RROOTWEBX $WEBXP/restore done
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare