Skip to content

Commit 1c90bc0

Browse files
committed
Use sudo for specific command only
1 parent ef0b3f6 commit 1c90bc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

install-extensions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ install_tideways_xhprof() {
5454

5555
test -f "$library" || die "Extension not available: $library"
5656
config="/etc/php/$PHP_VERSION/cli/conf.d/10-tideways_xhprof.ini"
57-
echo "extension=$library" > "$config"
57+
echo "extension=$library" | sudo tee "$config"
5858
has_extension "$extension"
5959
}
6060

0 commit comments

Comments
 (0)