mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "321660487de3d1df302c47e0ba21a999db28020b" and "ea1e30dfa928debfc513c8e823c1eae5d9e92dd5" have entirely different histories.
321660487d
...
ea1e30dfa9
|
@ -54,9 +54,7 @@ function default_settings() {
|
|||
|
||||
function update_script() {
|
||||
header_info
|
||||
if [[ ! -d /opt/dashy/public/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||
msg_error "There is currently no update path available."
|
||||
exit
|
||||
if [[ ! -d /dashy/public/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||
msg_info "Stopping ${APP}"
|
||||
systemctl stop dashy
|
||||
msg_ok "Stopped ${APP}"
|
||||
|
|
|
@ -17,6 +17,7 @@ msg_info "Installing Dependencies"
|
|||
$STD apt-get install -y curl
|
||||
$STD apt-get install -y sudo
|
||||
$STD apt-get install -y mc
|
||||
$STD apt-get install -y git
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Installing Node.js (Patience)"
|
||||
|
@ -34,12 +35,10 @@ ln -sf /usr/local/bin/yarn /usr/bin/yarn
|
|||
msg_ok "Installed Yarn"
|
||||
|
||||
msg_info "Installing Dashy (Patience)"
|
||||
mkdir -p /opt/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 git clone https://github.com/Lissy93/dashy.git
|
||||
cd /dashy
|
||||
$STD yarn
|
||||
export NODE_OPTIONS=--max-old-space-size=1000
|
||||
$STD yarn build
|
||||
msg_ok "Installed Dashy"
|
||||
|
||||
|
@ -50,7 +49,7 @@ Description=dashy
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/dashy
|
||||
WorkingDirectory=/dashy
|
||||
ExecStart=/usr/bin/yarn start
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Reference in New Issue