修复postinst在无网状态下导致uengine-loading-ubuntu出错的问题
This commit is contained in:
parent
ee6c7c45d8
commit
e3c342c07b
|
@ -81,7 +81,7 @@ sudo apt upgrade
|
||||||
**※2、修复 UEngine 在 debian12 安装无法正常开启 UEngine 的问题;**
|
**※2、修复 UEngine 在 debian12 安装无法正常开启 UEngine 的问题;**
|
||||||
**※3、修复在 UEngine 程序菜单检查到 UEngine 不存在但是无法安装的问题;**
|
**※3、修复在 UEngine 程序菜单检查到 UEngine 不存在但是无法安装的问题;**
|
||||||
**※4、修复了 https://gitee.com/gfdgd-xi/uengine-runner/issues/I6B6C8 的问题;**
|
**※4、修复了 https://gitee.com/gfdgd-xi/uengine-runner/issues/I6B6C8 的问题;**
|
||||||
**※5、优化了 postinst 脚本;**
|
**※5、优化了 postinst 和 postrm 脚本;**
|
||||||
6、添加 zenity 依赖;
|
6、添加 zenity 依赖;
|
||||||
7、屏蔽在更新程序过程中杀死程序中输出的错误;
|
7、屏蔽在更新程序过程中杀死程序中输出的错误;
|
||||||
8、修改下载 dtk 的网址。
|
8、修改下载 dtk 的网址。
|
||||||
|
|
|
@ -35,7 +35,7 @@ if [[ $? != 0 ]] && [[ -f /usr/bin/uengine-loading-ubuntu ]]; then
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
# 更新 uengine-loading-ubuntu(如果存在)
|
# 更新 uengine-loading-ubuntu(如果存在)
|
||||||
if [[ -f /usr/bin/uengine-loading-ubuntu ]]; then
|
if [[ -f /usr/bin/uengine-loading-ubuntu ]] || [[ -f /usr/bin/uengine-loading-binder ]]; then
|
||||||
echo 更新 uengine-loading-ubuntu
|
echo 更新 uengine-loading-ubuntu
|
||||||
cp /opt/apps/com.gitee.uengine.runner.spark/files/LoadingBinder/load.sh /usr/bin/uengine-loading-binder
|
cp /opt/apps/com.gitee.uengine.runner.spark/files/LoadingBinder/load.sh /usr/bin/uengine-loading-binder
|
||||||
if [ -f /tmp/upgrade-uengine-loading-ubuntu ]; then
|
if [ -f /tmp/upgrade-uengine-loading-ubuntu ]; then
|
||||||
|
@ -46,15 +46,18 @@ if [[ -f /usr/bin/uengine-loading-ubuntu ]]; then
|
||||||
if [ $? == 0 ]; then
|
if [ $? == 0 ]; then
|
||||||
# 替换
|
# 替换
|
||||||
cp /tmp/upgrade-uengine-loading-ubuntu /usr/bin/uengine-loading-ubuntu
|
cp /tmp/upgrade-uengine-loading-ubuntu /usr/bin/uengine-loading-ubuntu
|
||||||
chmod 755 /usr/bin/uengine-loading-ubuntu
|
|
||||||
for username in $(ls /home)
|
else
|
||||||
do
|
cp /opt/apps/com.gitee.uengine.runner.spark/files/Help/shell/run_daemon.sh /usr/bin/uengine-loading-ubuntu
|
||||||
echo /home/$username
|
|
||||||
cp /usr/bin/uengine-loading-ubuntu /home/$username/uengine-launch/run_daemon.sh
|
|
||||||
chmod 755 /home/$username/uengine-launch/run_daemon.sh
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
rm /tmp/upgrade-uengine-loading-ubuntu
|
chmod 755 /usr/bin/uengine-loading-ubuntu
|
||||||
|
for username in $(ls /home)
|
||||||
|
do
|
||||||
|
echo /home/$username
|
||||||
|
cp /usr/bin/uengine-loading-ubuntu /home/$username/uengine-launch/run_daemon.sh
|
||||||
|
chmod 755 /home/$username/uengine-launch/run_daemon.sh
|
||||||
|
done
|
||||||
|
rm -f /tmp/upgrade-uengine-loading-ubuntu
|
||||||
fi
|
fi
|
||||||
# 刷新图标缓存
|
# 刷新图标缓存
|
||||||
# 因为 Ubuntu 的问题,省略
|
# 因为 Ubuntu 的问题,省略
|
||||||
|
|
Loading…
Reference in New Issue