Skip to content

Commit 7c83fce

Browse files
authored
Fix sqlite3 failing to build (#3542)
1 parent d266e6a commit 7c83fce

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

ct/the-lounge.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ function update_script() {
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30+
if ! dpkg -l build-essential >/dev/null 2>&1; then
31+
$STD apt-get update
32+
$STD apt-get install -y build-essential
33+
fi
34+
if ! npm list -g node-gyp >/dev/null 2>&1; then
35+
$STD npm install -g node-gyp
36+
fi
3037
RELEASE=$(curl -s https://api.github.com/repos/thelounge/thelounge-deb/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
3138
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
3239
msg_info "Stopping Service"
@@ -61,4 +68,4 @@ description
6168
msg_ok "Completed Successfully!\n"
6269
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
6370
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
64-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9000${CL}"
71+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9000${CL}"

install/the-lounge-install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ network_check
1414
update_os
1515

1616
msg_info "Installing Dependencies"
17-
$STD apt-get install -y gpg
17+
$STD apt-get install -y \
18+
gpg \
19+
build-essential
1820
msg_ok "Installed Dependencies"
1921

2022
msg_info "Setting up Node.js Repository"
@@ -27,6 +29,7 @@ msg_info "Installing Node.js"
2729
$STD apt-get update
2830
$STD apt-get install -y nodejs
2931
$STD npm install --global yarn
32+
$STD npm install --global node-gyp
3033
msg_ok "Installed Node.js"
3134

3235
msg_info "Installing The Lounge"

0 commit comments

Comments
 (0)