Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit bfa1747

Browse files
committed
chore: updates
1 parent 3c9a904 commit bfa1747

4 files changed

Lines changed: 33 additions & 22 deletions

File tree

install/freshrss-install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ chmod -R g+rX /opt/freshrss
5050
chmod -R g+w /opt/freshrss/data/
5151
msg_ok "Installed FreshRSS"
5252

53+
msg_info "Setting up cron job for feed refresh"
54+
cat <<EOF >/etc/cron.d/freshrss-actualize
55+
*/15 * * * * www-data /bin/php -f /opt/freshrss/app/actualize_script.php > /tmp/FreshRSS.log 2>&1
56+
EOF
57+
chmod 644 /etc/cron.d/freshrss-actualize
58+
msg_ok "Set up Cron - if you need to modify the timing edit file /etc/cron.d/freshrss-actualize"
59+
5360
msg_info "Creating Service"
5461
cat <<EOF >/etc/apache2/sites-available/freshrss.conf
5562
<VirtualHost *:80>

install/magicmirror-install.sh

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/usr/bin/env bash
22

33
# Copyright (c) 2021-2025 tteck
4-
# Author: tteck (tteckster)
4+
# Author: tteck (tteckster) | Co-Author Slaviša Arežina (tremor021)
55
# License: MIT
66
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
7+
# Source: https://magicmirror.builders/
78

89
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
910
color
@@ -14,12 +15,11 @@ network_check
1415
update_os
1516

1617
msg_info "Installing Dependencies"
17-
$STD apt-get install -y curl
18-
$STD apt-get install -y sudo
19-
$STD apt-get install -y mc
20-
$STD apt-get install -y git
21-
$STD apt-get install -y ca-certificates
22-
$STD apt-get install -y gnupg
18+
$STD apt-get install -y \
19+
curl \
20+
sudo \
21+
mc \
22+
gnupg
2323
msg_ok "Installed Dependencies"
2424

2525
msg_info "Setting up Node.js Repository"
@@ -33,14 +33,14 @@ $STD apt-get update
3333
$STD apt-get install -y nodejs
3434
msg_ok "Installed Node.js"
3535

36-
msg_info "Setting up MagicMirror Repository"
37-
$STD git clone https://github.com/MichMich/MagicMirror /opt/magicmirror
38-
msg_ok "Set up MagicMirror Repository"
39-
40-
msg_info "Installing MagicMirror"
36+
msg_info "Setup MagicMirror"
37+
temp_file=$(mktemp)
38+
RELEASE=$(curl -s https://api.github.com/repos/MagicMirrorOrg/MagicMirror/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
39+
wget -q "https://github.com/MagicMirrorOrg/MagicMirror/archive/refs/tags/v${RELEASE}.tar.gz" -O "$temp_file"
40+
tar -xzf "$temp_file"
41+
mv MagicMirror-${RELEASE} /opt/magicmirror
4142
cd /opt/magicmirror
42-
$STD npm install --only=prod --omit=dev
43-
43+
$STD npm run install-mm
4444
cat <<EOF >/opt/magicmirror/config/config.js
4545
let config = {
4646
address: "0.0.0.0",
@@ -130,11 +130,12 @@ let config = {
130130
/*************** DO NOT EDIT THE LINE BELOW ***************/
131131
if (typeof module !== "undefined") {module.exports = config;}
132132
EOF
133-
msg_ok "Installed MagicMirror"
133+
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
134+
msg_ok "Setup MagicMirror"
134135

135136
msg_info "Creating Service"
136-
service_path="/etc/systemd/system/magicmirror.service"
137-
echo "[Unit]
137+
cat <<EOF >/etc/systemd/system/magicmirror.service
138+
[Unit]
138139
Description=Magic Mirror
139140
After=network.target
140141
StartLimitIntervalSec=0
@@ -145,17 +146,19 @@ Restart=always
145146
RestartSec=1
146147
User=root
147148
WorkingDirectory=/opt/magicmirror/
148-
ExecStart=/usr/bin/node serveronly
149+
ExecStart=/usr/bin/npm run server
149150
150151
[Install]
151-
WantedBy=multi-user.target" >$service_path
152-
$STD systemctl enable --now magicmirror
152+
WantedBy=multi-user.target
153+
EOF
154+
systemctl enable --now magicmirror
153155
msg_ok "Created Service"
154156

155157
motd_ssh
156158
customize
157159

158160
msg_info "Cleaning up"
161+
rm -rf $temp_file
159162
$STD apt-get -y autoremove
160163
$STD apt-get -y autoclean
161164
msg_ok "Cleaned"

install/zipline-install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ msg_info "Setting up PostgreSQL"
4040
DB_NAME=ziplinedb
4141
DB_USER=zipline
4242
DB_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)"
43-
SECRET_KEY="$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-13)"
43+
SECRET_KEY="$(openssl rand -base64 42 | tr -dc 'a-zA-Z0-9' | cut -c1-13)"
4444
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
4545
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0;"
4646
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8';"
@@ -94,4 +94,5 @@ msg_info "Cleaning up"
9494
$STD apt-get -y autoremove
9595
$STD apt-get -y autoclean
9696
msg_ok "Cleaned"
97+
9798
# Modified by surgeon https://github.com/bketelsen/surgeon

json/debian-vm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"interface_port": null,
1212
"documentation": null,
1313
"website": "https://www.debian.org/",
14-
"logo": "https://seeklogo.com/images/D/debian-logo-C136FDAF9E-seeklogo.com.png",
14+
"logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/debian.svg",
1515
"description": "Debian Linux is a distribution that emphasizes free software. It supports many hardware platforms",
1616
"install_methods": [
1717
{

0 commit comments

Comments
 (0)