mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-06 22:59:44 +00:00
update update.sh
This commit is contained in:
parent
4638015c2e
commit
5a5e99149e
@ -203,7 +203,7 @@ func CheckSerialDiskMount() {
|
||||
func Update2_3() {
|
||||
command.OnlyExec("curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/assist.sh | bash")
|
||||
if !file.CheckNotExist("/casaOS") {
|
||||
command.OnlyExec("source /casaOS/server/shell/upload.sh ;")
|
||||
command.OnlyExec("source /casaOS/server/shell/update.sh ;")
|
||||
}
|
||||
command.OnlyExec("source /casaOS/server/shell/delete-old-service.sh ;")
|
||||
}
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
# @Author: LinkLeong link@icewhale.com
|
||||
# @Date: 2022-06-30 10:08:33
|
||||
# @LastEditors: LinkLeong
|
||||
# @LastEditTime: 2022-06-30 18:13:17
|
||||
# @FilePath: /CasaOS/shell/move.sh
|
||||
# @LastEditTime: 2022-06-30 18:57:26
|
||||
# @FilePath: /CasaOS/shell/update.sh
|
||||
# @Description:
|
||||
###
|
||||
|
||||
@ -88,6 +88,10 @@ Check_Exist() {
|
||||
|
||||
Show 2 "Start cleaning up the old version."
|
||||
|
||||
${sudo_cmd} rm -rf /usr/lib/systemd/system/casaos.service
|
||||
|
||||
${sudo_cmd} rm -rf /lib/systemd/system/casaos.service
|
||||
|
||||
if [[ -f "/casaOS/server/conf/conf.ini" ]]; then
|
||||
${sudo_cmd} cp -rf /casaOS/server/conf/conf.ini ${CASA_CONF_PATH}
|
||||
${sudo_cmd} cp -rf /casaOS/server/conf/*.json ${CASA_USER_CONF_PATH}
|
||||
Loading…
x
Reference in New Issue
Block a user