mirror of https://github.com/tteck/Proxmox.git
Compare commits
3 Commits
9c4aa5410b
...
3fd87569df
Author | SHA1 | Date |
---|---|---|
|
3fd87569df | |
|
a53f2e50aa | |
|
897c75478e |
14
ct/homarr.sh
14
ct/homarr.sh
|
@ -53,16 +53,18 @@ function default_settings() {
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -d /opt/homarr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -d /opt/homarr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
msg_info "Updating $APP"
|
msg_info "Updating $APP (Patience)"
|
||||||
systemctl stop homarr
|
systemctl stop homarr
|
||||||
|
cp -Rf /opt/homarr/data /opt/homarr/data-backup
|
||||||
|
cp -Rf /opt/homarr/database /opt/homarr/data-backup
|
||||||
|
RELEASE=$(curl -s https://api.github.com/repos/ajnart/homarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
|
wget -q -O- https://github.com/ajnart/homarr/archive/refs/tags/v${RELEASE}.tar.gz | tar -xz -C /opt
|
||||||
|
cp -Rf /opt/homarr-${RELEASE}/* /opt/homarr/
|
||||||
|
cp -Rf /opt/homarr/data-backup/* /opt/homarr/
|
||||||
|
rm -rf /opt/homarr-${RELEASE} /opt/homarr/data-backup
|
||||||
cd /opt/homarr
|
cd /opt/homarr
|
||||||
cp -R data data-backup
|
|
||||||
git stash &>/dev/null
|
|
||||||
git pull &>/dev/null
|
|
||||||
yarn install &>/dev/null
|
yarn install &>/dev/null
|
||||||
yarn build &>/dev/null
|
yarn build &>/dev/null
|
||||||
cp -R data-backup/* data
|
|
||||||
rm -rf data-backup
|
|
||||||
systemctl start homarr
|
systemctl start homarr
|
||||||
msg_ok "Updated $APP"
|
msg_ok "Updated $APP"
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -141,7 +141,7 @@ function default_settings() {
|
||||||
MAC="$GEN_MAC"
|
MAC="$GEN_MAC"
|
||||||
VLAN=""
|
VLAN=""
|
||||||
MTU=""
|
MTU=""
|
||||||
START_VM="yes"
|
START_VM="no"
|
||||||
echo -e "${DGN}Using Virtual Machine ID: ${BGN}${VMID}${CL}"
|
echo -e "${DGN}Using Virtual Machine ID: ${BGN}${VMID}${CL}"
|
||||||
echo -e "${DGN}Using Machine Type: ${BGN}i440fx${CL}"
|
echo -e "${DGN}Using Machine Type: ${BGN}i440fx${CL}"
|
||||||
echo -e "${DGN}Using Disk Cache: ${BGN}None${CL}"
|
echo -e "${DGN}Using Disk Cache: ${BGN}None${CL}"
|
||||||
|
|
Loading…
Reference in New Issue