Skip to content

Commit 6e3367c

Browse files
authored
Linkwarden: Fix & Update Monolith-Installation (#2787)
* Linkwarden: Fix & Update Monolith-Installation * Update linkwarden.sh * remove monolith note
1 parent 71d8da3 commit 6e3367c

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

ct/linkwarden.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ function update_script() {
3232
systemctl stop linkwarden
3333
msg_ok "Stopped ${APP}"
3434

35+
msg_info "Updating Rust"
36+
$STD apt-get install -y build-essential
37+
$STD curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
38+
source $HOME/.cargo/env
39+
echo 'export PATH=/usr/local/cargo/bin:$PATH' >> /etc/profile
40+
source /etc/profile
41+
$STD cargo install monolith
42+
msg_ok "Updated Rust"
43+
3544
msg_info "Updating ${APP} to ${RELEASE}"
3645
cd /opt
3746
mv /opt/linkwarden/.env /opt/.env

install/linkwarden-install.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ $STD apt-get install -y \
2020
sudo \
2121
mc \
2222
make \
23+
git \
2324
postgresql \
25+
build-essential \
2426
cargo \
2527
gnupg
2628
msg_ok "Installed Dependencies"
@@ -37,10 +39,13 @@ $STD apt-get install -y nodejs
3739
$STD npm install -g yarn
3840
msg_ok "Installed Node.js/Yarn"
3941

40-
msg_info "Installing Monolith"
42+
msg_info "Installing Rust"
43+
$STD curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
44+
source $HOME/.cargo/env
45+
echo 'export PATH=/usr/local/cargo/bin:$PATH' >> /etc/profile
46+
source /etc/profile
4147
$STD cargo install monolith
42-
export PATH=~/.cargo/bin:$PATH
43-
msg_ok "Installed Monolith"
48+
msg_ok "Installed Rust"
4449

4550
msg_info "Setting up PostgreSQL DB"
4651
DB_NAME=linkwardendb

json/linkwarden.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,5 @@
3030
"username": null,
3131
"password": null
3232
},
33-
"notes": [
34-
{
35-
"text": "Linkwarden > 2.8.2 needs Monolith, More info: `https://github.com/community-scripts/ProxmoxVE/discussions/305`",
36-
"type": "info"
37-
}
38-
]
39-
}
33+
"notes": []
34+
}

0 commit comments

Comments
 (0)