Your ROOT_URL in app.ini is https://git.bwnetwork.us/ but you are visiting http://git.bwnetwork.us/Administrator/Proxmox_Helper_scripts/commit/f20d65a606f6b6cd5f524f3f6151a9045591767d?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
23 additions and
18 deletions
@ -59,10 +59,12 @@ if [[ ! -d /opt/homepage ]]; then msg_error "No ${APP} Installation Found!"; exi
if ! command -v npm >/dev/null 2>& 1; then
if ! command -v npm >/dev/null 2>& 1; then
echo "Installing NPM..."
echo "Installing NPM..."
apt-get install -y npm >/dev/null 2>& 1
apt-get install -y npm >/dev/null 2>& 1
npm install -g pnpm >/dev/null 2>& 1
echo "Installed NPM..."
echo "Installed NPM..."
fi
fi
fi
fi
RELEASE = $( curl -s https://api.github.com/repos/gethomepage/homepage/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }' )
RELEASE = $( curl -s https://api.github.com/repos/gethomepage/homepage/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }' )
if [ [ " ${ RELEASE } " != " $( cat /opt/${ APP } _version.txt) " ] ] || [ [ ! -f /opt/${ APP } _version.txt ] ] ; then
msg_info " Updating Homepage to v ${ RELEASE } (Patience) "
msg_info " Updating Homepage to v ${ RELEASE } (Patience) "
systemctl stop homepage
systemctl stop homepage
wget -q https://github.com/gethomepage/homepage/archive/refs/tags/v${ RELEASE } .tar.gz
wget -q https://github.com/gethomepage/homepage/archive/refs/tags/v${ RELEASE } .tar.gz
@ -75,6 +77,9 @@ pnpm install
pnpm build
pnpm build
systemctl start homepage
systemctl start homepage
msg_ok " Updated Homepage to v ${ RELEASE } "
msg_ok " Updated Homepage to v ${ RELEASE } "
else
msg_ok " No update required. ${ APP } is already at ${ RELEASE } "
fi
exit
exit
}
}