Compare commits

...

2 Commits

Author SHA1 Message Date
tteckster 321660487d
Update dashy.sh
There is currently no update path available.
2024-03-06 18:48:53 -05:00
tteckster 183340bc85
Update dashy-install.sh
fixes https://github.com/tteck/Proxmox/issues/2614
2024-03-06 18:45:37 -05:00
2 changed files with 9 additions and 6 deletions

View File

@ -54,7 +54,9 @@ function default_settings() {
function update_script() { function update_script() {
header_info header_info
if [[ ! -d /dashy/public/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /opt/dashy/public/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_error "There is currently no update path available."
exit
msg_info "Stopping ${APP}" msg_info "Stopping ${APP}"
systemctl stop dashy systemctl stop dashy
msg_ok "Stopped ${APP}" msg_ok "Stopped ${APP}"

View File

@ -17,7 +17,6 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl $STD apt-get install -y curl
$STD apt-get install -y sudo $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
$STD apt-get install -y git
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Node.js (Patience)" msg_info "Installing Node.js (Patience)"
@ -35,10 +34,12 @@ ln -sf /usr/local/bin/yarn /usr/bin/yarn
msg_ok "Installed Yarn" msg_ok "Installed Yarn"
msg_info "Installing Dashy (Patience)" msg_info "Installing Dashy (Patience)"
$STD git clone https://github.com/Lissy93/dashy.git mkdir -p /opt/dashy
cd /dashy #RELEASE=$(curl -s https://api.github.com/repos/Lissy93/dashy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
#wget -qO- https://github.com/Lissy93/dashy/archive/refs/tags/${RELEASE}.tar.gz | tar -xz -C /opt/dashy --strip-components=1
wget -qO- https://github.com/Lissy93/dashy/archive/refs/tags/2.1.1.tar.gz | tar -xz -C /opt/dashy --strip-components=1
cd /opt/dashy
$STD yarn $STD yarn
export NODE_OPTIONS=--max-old-space-size=1000
$STD yarn build $STD yarn build
msg_ok "Installed Dashy" msg_ok "Installed Dashy"
@ -49,7 +50,7 @@ Description=dashy
[Service] [Service]
Type=simple Type=simple
WorkingDirectory=/dashy WorkingDirectory=/opt/dashy
ExecStart=/usr/bin/yarn start ExecStart=/usr/bin/yarn start
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target