黄宗银 hace 3 años
padre
commit
3eb52bb5ec
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      auto_update.bash

+ 4 - 1
auto_update.bash

@@ -16,5 +16,8 @@ if [ ! -e "${fName}" ]; then
 	rm -rf ${SCRIPT_DIR}/rainloop
 	rm -f ${SCRIPT_DIR}/index.php
 	unzip -n -d ${SCRIPT_DIR}/ ${fName}
-	chmod -R 777 ${SCRIPT_DIR}/rainloop
+	cd ${SCRIPT_DIR}
+	find . -type d -exec chmod 755 {} \;
+    find . -type f -exec chmod 644 {} \;
+	chown -R www-data:www-data .
 fi