加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
postinstall_commands 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
# commands to run after installing all files and packages
# add any needed extra groups
for i in #cbnetwork
do
if grep -q "^${i}:" /etc/group
then
msg "group $i already exists"
else
msg "adding group $i"
sudo addgroup $i || errmsg "failed to add group: $i"
fi
done
# add user to necessary extra groups
# NB You should also check sysfiles2/etc/adduser.conf for default groups to add new users to
for i in netdev systemd-journal #scanner #bluetooth #fuse #cbnetwork
do
sudo adduser $user $i || errmsg "failed to add user: $user to group: $i"
done
# make sure gksu runs in sudo mode
#sudo update-alternatives --set libgksu-gconf-defaults /usr/share/libgksu/debian/gconf-defaults.libgksu-sudo || errmsg "failed to edit alternative for libgksu-gconf-defaults"
#sudo update-gconf-defaults || errmsg "failed to update gconf defaults"
# set cursor theme to pre-empt Adwaita
#sudo update-alternatives --set x-cursor-theme /usr/share/icons/DMZ-White/cursor.theme || errmsg "failed to edit alternative for x-cursor-theme"
# dmz-cursor-theme may have been installed after bunsen-configs
# so re-run the cursor theme setting in bunsen-configs' postinst script.
DEFAULT_CURSOR_THEME='/usr/share/icons/DMZ-White/cursor.theme'
if update-alternatives --list x-cursor-theme 2>/dev/null | grep -q "$DEFAULT_CURSOR_THEME" || errmsg "failed to edit alternative for x-cursor-theme"
then
sudo update-alternatives --set x-cursor-theme "$DEFAULT_CURSOR_THEME"
fi
# Add install date to /etc/bunsen/bunsen_install
sudo echo "Install date: $(date --utc +%FT%T)" >> /etc/bunsen/bunsen_install
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化