Compare commits
	
		
			No commits in common. "6fde3dd9befa946e734dadf2b4e1840cd2fd6760" and "f82a8f5f396d863871c0d4a1752ef3ebf26cb985" have entirely different histories.
		
	
	
		
			6fde3dd9be
			...
			f82a8f5f39
		
	
		
@ -153,7 +153,6 @@
 | 
			
		||||
210.117.237.2/32
 | 
			
		||||
85.94.199.210/32
 | 
			
		||||
109.73.80.190/32
 | 
			
		||||
 | 
			
		||||
151.0.128.28/32
 | 
			
		||||
193.206.214.15/32
 | 
			
		||||
85.94.199.210/32
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,9 @@ FROM alpine:latest
 | 
			
		||||
ENV DEBMIRRORURL="https://www.debian.org/mirror/list"
 | 
			
		||||
ENV EXTRAREPOS=True
 | 
			
		||||
ENV SECURITYREPOS=True
 | 
			
		||||
ENV GITURLPROTO=https
 | 
			
		||||
ENV GITURL=tea.shupogaki.org
 | 
			
		||||
ENV GITREPOPATH=YuruC3/Debain-repos.git
 | 
			
		||||
 | 
			
		||||
RUN apk update && \
 | 
			
		||||
    apk add python3 py3-pip git  
 | 
			
		||||
@ -12,9 +15,9 @@ RUN apk update && \
 | 
			
		||||
RUN mkdir /etc/debmirror
 | 
			
		||||
WORKDIR /etc/debmirror/
 | 
			
		||||
 | 
			
		||||
RUN git clone https://tea.shupogaki.org/YuruC3/Repo-IP-lists && \
 | 
			
		||||
    ln -s /etc/debmirror/Repo-IP-lists/MirrorListV4 /etc/debmirror/MirrorListV4 && \
 | 
			
		||||
    ln -s /etc/debmirror/Repo-IP-lists/MirrorListV6 /etc/debmirror/MirrorListV6
 | 
			
		||||
RUN git clone {{GITURLPROTO}}://{{GITURL}}/{{GITREPOPATH}} && \
 | 
			
		||||
    ln -s /etc/debmirror/Debain-repos/MirrorListV4 /etc/debmirror/MirrorListV4 && \
 | 
			
		||||
    ln -s /etc/debmirror/Debain-repos/MirrorListV6 /etc/debmirror/MirrorListV6
 | 
			
		||||
# RUN touch /etc/debmirror/MirrorListV6 && \
 | 
			
		||||
#     touch /etc/debmirror/MirrorListV4
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -2,7 +2,7 @@
 | 
			
		||||
set -e
 | 
			
		||||
 | 
			
		||||
WORKPTH="/etc/debmirror/"
 | 
			
		||||
REPO_DIR="$WORKPTH/Repo-IP-lists"
 | 
			
		||||
REPO_DIR="$WORKPTH/Debain-repos"
 | 
			
		||||
REPO_URL="${GITURLPROTO}://${GITURL}/${GITREPOPATH}"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -21,7 +21,7 @@ git config user.name "UpdateBot"
 | 
			
		||||
git config user.email "UpdateBot@localhost.local"
 | 
			
		||||
 | 
			
		||||
# If anything to commit locally, commit it now
 | 
			
		||||
if ! git diff --quiet; then
 | 
			
		||||
if ! git diff --cached --quiet; then
 | 
			
		||||
    echo "[$(date)] Committing local changes before pulling"
 | 
			
		||||
    git commit -m "Auto-commit before pull on $(date -Iseconds)"
 | 
			
		||||
fi
 | 
			
		||||
@ -33,11 +33,11 @@ git pull --rebase --autostash
 | 
			
		||||
git add MirrorListV4 MirrorListV6
 | 
			
		||||
 | 
			
		||||
# Commit and push only if there's anything new staged
 | 
			
		||||
if git diff --quiet; then
 | 
			
		||||
if git diff --cached --quiet; then
 | 
			
		||||
    echo "[$(date)] No changes to commit."
 | 
			
		||||
else
 | 
			
		||||
    git commit -a -m "Auto-update mirror list on $(date -Iseconds)" --quiet
 | 
			
		||||
    git push --quiet
 | 
			
		||||
    git commit -m "Auto-update mirror list on $(date -Iseconds)"
 | 
			
		||||
    git push
 | 
			
		||||
    echo "[$(date)] Changes pushed successfully."
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user