Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 9b4f0a8

Browse files
authored
setup_system: use local admin path for proxy.conf (#328)
Currently the system.conf.d/proxy.conf file is saved at /usr/lib which is the vendor path, and can be dropped by "swupd repair --picky --force". This commit creates the local administrator /etc/systemd/system.conf.d directory and store the proxy.conf inside.
1 parent 696861c commit 9b4f0a8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

clr-k8s-examples/setup_system.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ function setup_proxy() {
161161
echo "Warning, failed to find /etc/profile.d/proxy.sh to edit no_proxy line"
162162
fi
163163

164-
cat <<EOF | sudo bash -c "cat > /usr/lib/systemd/system.conf.d/proxy.conf"
164+
sudo mkdir -p /etc/systemd/system.conf.d
165+
cat <<EOF | sudo bash -c "cat > /etc/systemd/system.conf.d/proxy.conf"
165166
[Manager]
166167
DefaultEnvironment="HTTP_PROXY=${http_proxy}"
167168
DefaultEnvironment="HTTPS_PROXY=${https_proxy}"

0 commit comments

Comments
 (0)