Sfoglia il codice sorgente

Fix permissions .sh file in /install/ folder

/install/deb/templates/nginx/*.sh or simalar locations need to be able to execute them to create the extra config file or run as an second task
Jaap Marcus 4 anni fa
parent
commit
e79d6f7f8a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/hst_autocompile.sh

+ 2 - 0
src/hst_autocompile.sh

@@ -625,6 +625,8 @@ if [ "$HESTIA_B" = true ]; then
     chmod +x $BUILD_DIR_HESTIA/usr/local/hestia/web/inc/mail-wrapper.php
     # Allow the executable to be executed
     chmod +x $BUILD_DIR_HESTIA/usr/local/hestia/bin/*
+    find $BUILD_DIR_HESTIA/usr/local/hestia/install/ \( -name '*.sh' \) -exec chmod +x {} \;
+    chmod -x $BUILD_DIR_HESTIA/usr/local/hestia/install/* 
     chown -R root:root $BUILD_DIR_HESTIA
 
     if [ "$BUILD_DEB" = true ]; then