Skip to content

Commit 6a8b7af

Browse files
committed
chore(apt): add proxy configuration setup
1 parent b200eb2 commit 6a8b7af

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

scripts/config/proxy.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Acquire::http::Proxy "http://127.0.0.1:7890/";
2+
Acquire::https::Proxy "http://127.0.0.1:7890/";

scripts/sync/sync_apt_proxy.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import shutil
2+
import os
3+
4+
src = '/etc/apt/apt.conf.d/proxy.conf'
5+
dst_dir = "scripts/config"
6+
os.makedirs(dst_dir, exist_ok=True)
7+
dst = os.path.join(dst_dir, 'proxy.conf')
8+
9+
shutil.copy2(src, dst)
10+
print(f"Copied {src} to {dst}")

0 commit comments

Comments
 (0)