Revert Wastebin changes

No arm64 binaries available
This commit is contained in:
Sam Heinz
2024-08-08 06:57:34 +10:00
parent 43a3e0ef23
commit f95165b5ce
+26 -15
View File
@@ -15,23 +15,33 @@ setting_up_container
network_check network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies (Patience)"
$STD apt-get install -y curl $STD apt-get install -y --no-install-recommends \
$STD apt-get install -y sudo build-essential \
$STD apt-get install -y mc unzip \
$STD apt-get install -y wget curl \
$STD apt-get install -y ca-certificates sudo \
$STD apt-get install -y openssh-server git \
make \
mc \
wget \
ca-certificates \
openssh-server
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Wastebin" msg_info "Installing Rust (Patience)"
$STD bash <(curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs) -y
source ~/.cargo/env
msg_ok "Installed Rust"
msg_info "Installing Wastebin (Patience)"
RELEASE=$(curl -s https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -s https://api.github.com/repos/matze/wastebin/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
wget -q https://github.com/matze/wastebin/releases/download/${RELEASE}/wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst wget -q "https://github.com/matze/wastebin/archive/refs/tags/${RELEASE}.zip"
tar -xf wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst unzip -q ${RELEASE}.zip
rm -rf wastebin_${RELEASE}_x86_64-unknown-linux-musl.tar.zst mv wastebin-${RELEASE} /opt/wastebin
mkdir -p /opt/wastebin rm -R ${RELEASE}.zip
mv wastebin /opt/wastebin/ cd /opt/wastebin
chmod +x /opt/wastebin/wastebin cargo build -q --release
msg_ok "Installed Wastebin" msg_ok "Installed Wastebin"
msg_info "Creating Service" msg_info "Creating Service"
@@ -41,8 +51,9 @@ Description=Start Wastebin Service
After=network.target After=network.target
[Service] [Service]
User=root
WorkingDirectory=/opt/wastebin WorkingDirectory=/opt/wastebin
ExecStart=/opt/wastebin/wastebin ExecStart=/root/.cargo/bin/cargo run --release --quiet
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target