mirror of
https://gitee.com/amber-ce/amber-ce-bookworm.git
synced 2025-12-15 19:42:05 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2b311fe7ef | |||
| 97726bebf8 | |||
| 0e8e4ecf0f |
@@ -3,12 +3,11 @@ export PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE"
|
|||||||
|
|
||||||
if [ "${PACKAGE_NAME}" = "cn.flamescion.bookworm-compatibility-mode" ];then
|
if [ "${PACKAGE_NAME}" = "cn.flamescion.bookworm-compatibility-mode" ];then
|
||||||
if [ -d /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env ];then
|
if [ -d /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env ];then
|
||||||
if [ "$(arch)" != "loongarch64" ];then
|
|
||||||
mv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/ace-env
|
mv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/ace-env
|
||||||
ln -sfv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/ace-env /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env
|
ln -sfv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/ace-env /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env
|
||||||
else
|
|
||||||
mv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env /opt/apps/amber-ce-loongnix/files/ace-env
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -113,6 +113,6 @@ sudo -u $(who | awk '{print $1}' | head -n 1) bwrap --dev-bind $chrootEnvPath/ /
|
|||||||
--dev-bind-try /etc/resolv.conf /etc/resolv.conf \
|
--dev-bind-try /etc/resolv.conf /etc/resolv.conf \
|
||||||
--dev-bind-try /home /home \
|
--dev-bind-try /home /home \
|
||||||
locale-gen
|
locale-gen
|
||||||
|
bookworm-run update-locale LANG=$LANG
|
||||||
chown -R root $chrootEnvPath
|
chown -R root $chrootEnvPath
|
||||||
chmod 777 -R $chrootEnvPath /usr/share/icons
|
chmod 777 -R $chrootEnvPath /usr/share/icons
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ fi
|
|||||||
printf "\"%s\" ALL = (root) NOPASSWD:ALL\n" "${container_user_name}" >> /etc/sudoers.d/sudoers
|
printf "\"%s\" ALL = (root) NOPASSWD:ALL\n" "${container_user_name}" >> /etc/sudoers.d/sudoers
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chmod 440 /etc/sudo.conf
|
||||||
|
chmod 440 /etc/sudoers
|
||||||
|
chmod 440 /etc/sudoers.d
|
||||||
|
|
||||||
|
|
||||||
printf "ACE: Setting up groups...\n"
|
printf "ACE: Setting up groups...\n"
|
||||||
# If not existing, ensure we have a group for our user.
|
# If not existing, ensure we have a group for our user.
|
||||||
|
|||||||
Reference in New Issue
Block a user