[GH-ISSUE #3] 请问如何将现有的版本手动升级呢? #1

Closed
opened 2026-03-03 13:50:25 +03:00 by kerem · 1 comment
Owner

Originally created by @lovelivetw on GitHub (Dec 13, 2018).
Original GitHub issue: https://github.com/inpanel/inpanel/issues/3

请问如何将现有的版本手动升级呢?
有没有指令可以教学
谢谢doudoudzj 大大

Originally created by @lovelivetw on GitHub (Dec 13, 2018). Original GitHub issue: https://github.com/inpanel/inpanel/issues/3 请问如何将现有的版本手动升级呢? 有没有指令可以教学 谢谢doudoudzj 大大
kerem closed this issue 2026-03-03 13:50:25 +03:00
Author
Owner

@jksdou commented on GitHub (Dec 14, 2018):

请问如何将现有的版本手动升级呢?
有没有指令可以教学
谢谢doudoudzj 大大

方法一:

# 进入程序目录
cd /usr/local/vpsmate
# 备份配置文件
cp /usr/local/vpsmate/data/config.ini /tmp/intranet_config.ini
# 设置仓库地址
git init
git remote set-url origin https://github.com/intranet-panel/intranet.git
# 强制拉取最新源码
git fetch --all && git reset --hard origin/master && git pull
# 恢复备份的配置文件
/bin/cp -f /tmp/intranet_config.ini /usr/local/vpsmate/data/config.ini
# 重启面板
service vpsmate restart

方法二,重新安装:

service vpsmate stop
rm -rf /usr/local/vpsmate
rm -f /etc/init.d/vpsmate
<!-- gh-comment-id:447195049 --> @jksdou commented on GitHub (Dec 14, 2018): > 请问如何将现有的版本手动升级呢? > 有没有指令可以教学 > 谢谢doudoudzj 大大 方法一: ```shell # 进入程序目录 cd /usr/local/vpsmate # 备份配置文件 cp /usr/local/vpsmate/data/config.ini /tmp/intranet_config.ini # 设置仓库地址 git init git remote set-url origin https://github.com/intranet-panel/intranet.git # 强制拉取最新源码 git fetch --all && git reset --hard origin/master && git pull # 恢复备份的配置文件 /bin/cp -f /tmp/intranet_config.ini /usr/local/vpsmate/data/config.ini # 重启面板 service vpsmate restart ``` 方法二,重新安装: ```shell service vpsmate stop rm -rf /usr/local/vpsmate rm -f /etc/init.d/vpsmate ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/inpanel#1
No description provided.