mirror of
https://github.com/unraid/api.git
synced 2026-04-28 11:09:21 -05:00
fix: make scripts executable when building the plugin (#1255)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced script functionality to automatically set correct executable permissions for files within "scripts" directories, ensuring that all relevant scripts run as expected. - Added symbolic link management for various Node.js binaries, improving accessibility and organization within the application. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -391,6 +391,9 @@ if [ "$CHOWN" = "y" ]; then
|
||||
fi
|
||||
|
||||
$SUDO find . -type d -exec chmod 755 {} + || exit 1
|
||||
$SUDO find . -type d -name scripts -exec find {} -type f \; | while read -r file; do
|
||||
$SUDO chmod +x "$file"
|
||||
done
|
||||
$SUDO find . -exec chown 0:0 {} + || exit 1
|
||||
set +e
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user