mirror of
https://gitee.com/amber-ce/amber-ce-bookworm.git
synced 2025-12-13 18:42:05 +08:00
更改主机名
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
Package: cn.flamescion.bookworm-compatibility-mode
|
Package: cn.flamescion.bookworm-compatibility-mode
|
||||||
Version: 12.3.5
|
Version: 12.3.6
|
||||||
Section: misc
|
Section: misc
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Depends: bubblewrap,flatpak,zenity
|
Depends: bubblewrap,flatpak,zenity
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ else
|
|||||||
for file in "$DPKG_INFO_PATH"/*.list; do
|
for file in "$DPKG_INFO_PATH"/*.list; do
|
||||||
if grep -q "$IN_CONTAINER_PATH" "$file"; then
|
if grep -q "$IN_CONTAINER_PATH" "$file"; then
|
||||||
PKGNAME_GUESS=$(basename "$file" .list | cut -d':' -f1)
|
PKGNAME_GUESS=$(basename "$file" .list | cut -d':' -f1)
|
||||||
|
echo "Get pkgname $PKGNAME_GUESS, uninstalling..."
|
||||||
bookworm-run apt autopurge $PKGNAME_GUESS -y
|
bookworm-run apt autopurge $PKGNAME_GUESS -y
|
||||||
ret=$?
|
ret=$?
|
||||||
if [ "$ret" = "0" ];then
|
if [ "$ret" = "0" ];then
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ bwrap --dev-bind $chrootEnvPath/ / \
|
|||||||
--bind-try /usr/share/themes /usr/local/share/themes \
|
--bind-try /usr/share/themes /usr/local/share/themes \
|
||||||
--bind-try /usr/share/icons /usr/local/share/icons \
|
--bind-try /usr/share/icons /usr/local/share/icons \
|
||||||
--bind-try /usr/share/fonts /usr/local/share/fonts \
|
--bind-try /usr/share/fonts /usr/local/share/fonts \
|
||||||
--hostname bookworm-compatibility-mode \
|
--hostname Amber-CE-Bookworm \
|
||||||
--unshare-uts \
|
--unshare-uts \
|
||||||
--dev-bind /etc/resolv.conf /etc/resolv.conf \
|
--dev-bind /etc/resolv.conf /etc/resolv.conf \
|
||||||
--dev-bind /home /home \
|
--dev-bind /home /home \
|
||||||
@@ -222,7 +222,7 @@ sudo -u $(who | awk '{print $1}' | head -n 1) bwrap --dev-bind $chrootEnvPath/ /
|
|||||||
--ro-bind /usr/share/themes /usr/local/share/themes \
|
--ro-bind /usr/share/themes /usr/local/share/themes \
|
||||||
--ro-bind /usr/share/icons /usr/local/share/icons \
|
--ro-bind /usr/share/icons /usr/local/share/icons \
|
||||||
--ro-bind /usr/share/fonts /usr/local/share/fonts \
|
--ro-bind /usr/share/fonts /usr/local/share/fonts \
|
||||||
--hostname bookworm-compatibility-mode \
|
--hostname Amber-CE-Bookworm \
|
||||||
--unshare-uts \
|
--unshare-uts \
|
||||||
--dev-bind /etc/resolv.conf /etc/resolv.conf \
|
--dev-bind /etc/resolv.conf /etc/resolv.conf \
|
||||||
--dev-bind /home /home \
|
--dev-bind /home /home \
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ bwrap --dev-bind / / \
|
|||||||
--ro-bind /usr/share/themes /usr/local/share/themes \
|
--ro-bind /usr/share/themes /usr/local/share/themes \
|
||||||
--ro-bind /usr/share/icons /usr/share/icons \
|
--ro-bind /usr/share/icons /usr/share/icons \
|
||||||
--ro-bind /usr/share/fonts /usr/local/share/fonts \
|
--ro-bind /usr/share/fonts /usr/local/share/fonts \
|
||||||
--hostname bookworm-compatibility-mode \
|
--hostname Amber-CE-Bookworm \
|
||||||
--unshare-uts \
|
--unshare-uts \
|
||||||
--dev-bind /etc/resolv.conf /etc/resolv.conf \
|
--dev-bind /etc/resolv.conf /etc/resolv.conf \
|
||||||
--cap-add CAP_SYS_ADMIN \
|
--cap-add CAP_SYS_ADMIN \
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ bwrap --dev-bind / / \
|
|||||||
--ro-bind /usr/share/themes /usr/local/share/themes \
|
--ro-bind /usr/share/themes /usr/local/share/themes \
|
||||||
--ro-bind /usr/share/icons /usr/local/share/icons \
|
--ro-bind /usr/share/icons /usr/local/share/icons \
|
||||||
--ro-bind /usr/share/fonts /usr/local/share/fonts \
|
--ro-bind /usr/share/fonts /usr/local/share/fonts \
|
||||||
--hostname bookworm-compatibility-mode \
|
--hostname Amber-CE-Bookworm \
|
||||||
--unshare-uts \
|
--unshare-uts \
|
||||||
--dev-bind /etc/resolv.conf /etc/resolv.conf \
|
--dev-bind /etc/resolv.conf /etc/resolv.conf \
|
||||||
--cap-add CAP_SYS_ADMIN \
|
--cap-add CAP_SYS_ADMIN \
|
||||||
|
|||||||
Reference in New Issue
Block a user