Skip to content

Commit

Permalink
Add sudo for chmod for Windows WSL 2
Browse files Browse the repository at this point in the history
  • Loading branch information
muhme committed Dec 14, 2024
1 parent cc757e0 commit 380179e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.8
2.1.9
3 changes: 2 additions & 1 deletion scripts/cypress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ else
# to the System Tests. Hopefully, this is only temporary and can be replaced to reduce complexity and dependency.
# Joomla command line client inside Docker container needs to wrote 'configuration.php' file.
log "Chmod 644 'joomla-${instance}/configuration.php' for cli/joomla.php"
chmod 644 "joomla-${instance}/configuration.php"
chmod 644 "joomla-${instance}/configuration.php" 2>/dev/null ||
sudo chmod 644 "joomla-${instance}/configuration.php"
fi

# Use of SMTP port 7325 for the smtp-tester, as port 7125 is occupied by the mapping for the Cypress container.
Expand Down
3 changes: 2 additions & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ for instance in "${instancesToTest[@]}"; do
current_permissions=$(ls -l "joomla-${instance}/configuration.php" | awk '{print $1}' | sed 's/[@+]$//')
if [ "${current_permissions}" != "-rw-r--r--" ]; then
log "Chmod 644 'joomla-${instance}/configuration.php' for cli/joomla.php"
chmod 644 "joomla-${instance}/configuration.php"
chmod 644 "joomla-${instance}/configuration.php" 2>/dev/null ||
sudo chmod 644 "joomla-${instance}/configuration.php"
fi

if [[ "$novnc" == true ]]; then
Expand Down

0 comments on commit 380179e

Please sign in to comment.