@@ -14,10 +14,10 @@ network_check
1414update_os
1515
1616msg_info " Installing Dependencies"
17- $STD apt-get install -y curl
18- $STD apt-get install -y sudo
19- $STD apt-get install -y mc
20- $STD apt-get install -y gpg
17+ $STD apt-get install -y curl \
18+ sudo \
19+ mc \
20+ gpg
2121msg_ok " Installed Dependencies"
2222
2323msg_info " Setting up Node.js Repository"
@@ -32,6 +32,7 @@ $STD apt-get install -y nodejs
3232$STD npm install -g pnpm
3333msg_ok " Installed Node.js"
3434
35+ LOCAL_IP=$( hostname -I | awk ' {print $1}' )
3536RELEASE=$( curl -s https://api.github.com/repos/gethomepage/homepage/releases/latest | grep " tag_name" | awk ' {print substr($2, 3, length($2)-4) }' )
3637msg_info " Installing Homepage v${RELEASE} (Patience)"
3738wget -q https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE} .tar.gz
@@ -45,7 +46,9 @@ cp /opt/homepage/src/skeleton/* /opt/homepage/config
4546$STD pnpm install
4647export NEXT_PUBLIC_VERSION=" v$RELEASE "
4748export NEXT_PUBLIC_REVISION=" source"
49+ export NEXT_TELEMETRY_DISABLED=1
4850$STD pnpm build
51+ echo " HOMEPAGE_ALLOWED_HOSTS=localhost:3000,${LOCAL_IP} :3000" > /opt/homepage/.env
4952echo " ${RELEASE} " > /opt/${APPLICATION} _version.txt
5053msg_ok " Installed Homepage v${RELEASE} "
5154
0 commit comments