update
This commit is contained in:
12
defaults.inc
12
defaults.inc
@@ -14,10 +14,10 @@ done
|
|||||||
VIRTIO_FILE=${VIRTIO_DOWNLOAD_URL##*/}
|
VIRTIO_FILE=${VIRTIO_DOWNLOAD_URL##*/}
|
||||||
|
|
||||||
|
|
||||||
if [ -f /etc/apt/sources.list.d/gyptazy.list ]; then
|
# if [ -f /etc/apt/sources.list.d/gyptazy.list ]; then
|
||||||
rm -f /etc/apt/sources.list.d/gyptazy.list /etc/apt/keyrings/gyptazy.asc
|
# rm -f /etc/apt/sources.list.d/gyptazy.list /etc/apt/keyrings/gyptazy.asc
|
||||||
echo "deb https://repo.gyptazy.com/stable /" > /etc/apt/sources.list.d/proxlb.list
|
# echo "deb https://repo.gyptazy.com/stable /" > /etc/apt/sources.list.d/proxlb.list
|
||||||
wget -O /etc/apt/trusted.gpg.d/proxlb.asc https://repo.gyptazy.com/repository.gpg
|
# wget -O /etc/apt/trusted.gpg.d/proxlb.asc https://repo.gyptazy.com/repository.gpg
|
||||||
apt-get update
|
# apt-get update
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
|
|||||||
@@ -185,10 +185,15 @@ DOWNLOAD_VIRTIO() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DETECT_CPU(){
|
DETECT_CPU(){
|
||||||
if [ ! -f /etc/apt/sources.list.d/proxlb.list ]; then
|
# if [ ! -f /etc/apt/sources.list.d/proxlb.list ]; then
|
||||||
echo "deb https://repo.gyptazy.com/stable /" > /etc/apt/sources.list.d/proxlb.list
|
# echo "deb https://repo.gyptazy.com/stable /" > /etc/apt/sources.list.d/proxlb.list
|
||||||
wget -O /etc/apt/trusted.gpg.d/proxlb.asc https://repo.gyptazy.com/repository.gpg
|
# wget -O /etc/apt/trusted.gpg.d/proxlb.asc https://repo.gyptazy.com/repository.gpg
|
||||||
apt-get update
|
# apt-get update
|
||||||
|
# fi
|
||||||
|
if [ ! -f /etc/apt/sources.list.d/gyptazy.list ]; then
|
||||||
|
curl https://git.gyptazy.com/api/packages/gyptazy/debian/repository.key -o /etc/apt/keyrings/gyptazy.asc
|
||||||
|
echo "deb [signed-by=/etc/apt/keyrings/gyptazy.asc] https://packages.gyptazy.com/api/packages/gyptazy/debian trixie main" | sudo tee -a /etc/apt/sources.list.d/gyptazy.list
|
||||||
|
apt update
|
||||||
fi
|
fi
|
||||||
if [ "$(dpkg -l | awk '/proxclmc/ {print }'|wc -l)" -eq 0 ]; then
|
if [ "$(dpkg -l | awk '/proxclmc/ {print }'|wc -l)" -eq 0 ]; then
|
||||||
apt -y install proxclmc
|
apt -y install proxclmc
|
||||||
|
|||||||
Reference in New Issue
Block a user