mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-08-19 13:36:43 +00:00
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.
This commit is contained in:
committed by
GitHub
parent
696861ce66
commit
9b4f0a8582
@@ -161,7 +161,8 @@ function setup_proxy() {
|
||||
echo "Warning, failed to find /etc/profile.d/proxy.sh to edit no_proxy line"
|
||||
fi
|
||||
|
||||
cat <<EOF | sudo bash -c "cat > /usr/lib/systemd/system.conf.d/proxy.conf"
|
||||
sudo mkdir -p /etc/systemd/system.conf.d
|
||||
cat <<EOF | sudo bash -c "cat > /etc/systemd/system.conf.d/proxy.conf"
|
||||
[Manager]
|
||||
DefaultEnvironment="HTTP_PROXY=${http_proxy}"
|
||||
DefaultEnvironment="HTTPS_PROXY=${https_proxy}"
|
||||
|
||||
Reference in New Issue
Block a user