Jelajahi Sumber

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 tahun lalu
induk
melakukan
e79d6f7f8a
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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
     chmod +x $BUILD_DIR_HESTIA/usr/local/hestia/web/inc/mail-wrapper.php
     # Allow the executable to be executed
     # Allow the executable to be executed
     chmod +x $BUILD_DIR_HESTIA/usr/local/hestia/bin/*
     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
     chown -R root:root $BUILD_DIR_HESTIA
 
 
     if [ "$BUILD_DEB" = true ]; then
     if [ "$BUILD_DEB" = true ]; then