Skip to content

Commit

Permalink
Fix: 修复升级时配置丢失的问题(deb)
Browse files Browse the repository at this point in the history
  • Loading branch information
MemoryShadow committed Jun 26, 2022
1 parent bc3dcc5 commit 92e3b28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deb/DEBIAN/preinst → deb/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ source /etc/minecraftctl/config
# 如果配置文件存在,就加载旧的配置文件
if [ -e /etc/minecraftctl/config.bak ]; then
source /etc/minecraftctl/config.bak
rm /etc/minecraftctl/config
fi
# 对旧的配置文件进行兼容性处理(映射)
cat<<EOF>/etc/minecraftctl/config
Expand Down

0 comments on commit 92e3b28

Please sign in to comment.