forked from forkanization/Proxmox-arm64
Port Scrutiny to arm64
This commit is contained in:
@@ -21,7 +21,9 @@ $STD apt-get install -y \
|
||||
curl \
|
||||
smartmontools \
|
||||
make \
|
||||
mc
|
||||
mc \
|
||||
wget \
|
||||
openssh-server
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Installing Scrutiny WebApp"
|
||||
@@ -29,11 +31,11 @@ mkdir -p /opt/scrutiny/{config,web,bin}
|
||||
RELEASE=$(curl -s https://api.github.com/repos/analogj/scrutiny/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||
wget -q -O /opt/scrutiny/config/scrutiny.yaml https://raw.githubusercontent.com/AnalogJ/scrutiny/master/example.scrutiny.yaml
|
||||
wget -q -O /opt/scrutiny/bin/scrutiny-web-linux-amd64 "https://github.com/AnalogJ/scrutiny/releases/download/${RELEASE}/scrutiny-web-linux-amd64"
|
||||
wget -q -O /opt/scrutiny/bin/scrutiny-web-linux-arm64 "https://github.com/AnalogJ/scrutiny/releases/download/${RELEASE}/scrutiny-web-linux-arm64"
|
||||
wget -q -O /opt/scrutiny/web/scrutiny-web-frontend.tar.gz "https://github.com/AnalogJ/scrutiny/releases/download/${RELEASE}/scrutiny-web-frontend.tar.gz"
|
||||
cd /opt/scrutiny/web
|
||||
tar xzf scrutiny-web-frontend.tar.gz --strip-components 1 -C .
|
||||
chmod +x /opt/scrutiny/bin/scrutiny-web-linux-amd64
|
||||
chmod +x /opt/scrutiny/bin/scrutiny-web-linux-arm64
|
||||
msg_ok "Installed Scrutiny WebApp"
|
||||
|
||||
msg_info "Setup Service"
|
||||
@@ -44,7 +46,7 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/opt/scrutiny/bin/scrutiny-web-linux-amd64 start --config /opt/scrutiny/config/scrutiny.yaml
|
||||
ExecStart=/opt/scrutiny/bin/scrutiny-web-linux-arm64 start --config /opt/scrutiny/config/scrutiny.yaml
|
||||
Restart=always
|
||||
User=root
|
||||
|
||||
|
||||
Reference in New Issue
Block a user