mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-22 15:06:25 +01:00
Compare commits
2 Commits
update_jot
...
add_recycl
| Author | SHA1 | Date | |
|---|---|---|---|
| 25331dbb3a | |||
| 4565daa0f4 |
29
ct/jotty.sh
29
ct/jotty.sh
@ -48,17 +48,6 @@ function update_script() {
|
|||||||
$STD yarn --frozen-lockfile
|
$STD yarn --frozen-lockfile
|
||||||
$STD yarn next telemetry disable
|
$STD yarn next telemetry disable
|
||||||
$STD yarn build
|
$STD yarn build
|
||||||
|
|
||||||
[ -d "public" ] && cp -r public .next/standalone/
|
|
||||||
[ -d "howto" ] && cp -r howto .next/standalone/
|
|
||||||
mkdir -p .next/standalone/.next
|
|
||||||
cp -r .next/static .next/standalone/.next/
|
|
||||||
|
|
||||||
mv .next/standalone /tmp/jotty_standalone
|
|
||||||
rm -rf * .next .git .gitignore .yarn
|
|
||||||
mv /tmp/jotty_standalone/* .
|
|
||||||
mv /tmp/jotty_standalone/.[!.]* . 2>/dev/null || true
|
|
||||||
rm -rf /tmp/jotty_standalone
|
|
||||||
msg_ok "Updated jotty"
|
msg_ok "Updated jotty"
|
||||||
|
|
||||||
msg_info "Restoring configuration & data"
|
msg_info "Restoring configuration & data"
|
||||||
@ -66,24 +55,6 @@ function update_script() {
|
|||||||
$STD tar -xf /opt/data_config.tar
|
$STD tar -xf /opt/data_config.tar
|
||||||
msg_ok "Restored configuration & data"
|
msg_ok "Restored configuration & data"
|
||||||
|
|
||||||
msg_info "Updating Service"
|
|
||||||
cat <<EOF >/etc/systemd/system/jotty.service
|
|
||||||
[Unit]
|
|
||||||
Description=jotty server
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
WorkingDirectory=/opt/jotty
|
|
||||||
EnvironmentFile=/opt/jotty/.env
|
|
||||||
ExecStart=/usr/bin/node server.js
|
|
||||||
Restart=on-abnormal
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl daemon-reload
|
|
||||||
msg_ok "Updated Service"
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start jotty
|
systemctl start jotty
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
|
|||||||
@ -31,5 +31,14 @@
|
|||||||
"username": null,
|
"username": null,
|
||||||
"password": null
|
"password": null
|
||||||
},
|
},
|
||||||
"notes": []
|
"notes": [
|
||||||
|
{
|
||||||
|
"type": "warning",
|
||||||
|
"content": "Configure your Radarr/Sonarr instances in `/root/.config/recyclarr/recyclarr.yml` before the first sync."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "info",
|
||||||
|
"content": "Automatic daily sync is configured via `/etc/cron.d/recyclarr`. Sync logs are saved to `/root/.config/recyclarr/sync.log`."
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,18 +21,6 @@ cd /opt/jotty
|
|||||||
$STD yarn --frozen-lockfile
|
$STD yarn --frozen-lockfile
|
||||||
$STD yarn next telemetry disable
|
$STD yarn next telemetry disable
|
||||||
$STD yarn build
|
$STD yarn build
|
||||||
|
|
||||||
[ -d "public" ] && cp -r public .next/standalone/
|
|
||||||
[ -d "howto" ] && cp -r howto .next/standalone/
|
|
||||||
mkdir -p .next/standalone/.next
|
|
||||||
cp -r .next/static .next/standalone/.next/
|
|
||||||
|
|
||||||
mv .next/standalone /tmp/jotty_standalone
|
|
||||||
rm -rf * .next .git .gitignore .yarn
|
|
||||||
mv /tmp/jotty_standalone/* .
|
|
||||||
mv /tmp/jotty_standalone/.[!.]* . 2>/dev/null || true
|
|
||||||
rm -rf /tmp/jotty_standalone
|
|
||||||
|
|
||||||
mkdir -p data/{users,checklists,notes}
|
mkdir -p data/{users,checklists,notes}
|
||||||
|
|
||||||
cat <<EOF >/opt/jotty/.env
|
cat <<EOF >/opt/jotty/.env
|
||||||
@ -67,7 +55,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/opt/jotty
|
WorkingDirectory=/opt/jotty
|
||||||
EnvironmentFile=/opt/jotty/.env
|
EnvironmentFile=/opt/jotty/.env
|
||||||
ExecStart=/usr/bin/node server.js
|
ExecStart=yarn start
|
||||||
Restart=on-abnormal
|
Restart=on-abnormal
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
@ -24,6 +24,14 @@ mkdir -p /root/.config/recyclarr
|
|||||||
$STD recyclarr config create
|
$STD recyclarr config create
|
||||||
msg_ok "Configured Recyclarr"
|
msg_ok "Configured Recyclarr"
|
||||||
|
|
||||||
|
msg_info "Setting up Daily Sync Cron"
|
||||||
|
cat <<EOF >/etc/cron.d/recyclarr
|
||||||
|
# Run recyclarr sync daily
|
||||||
|
@daily root recyclarr sync >> /root/.config/recyclarr/sync.log 2>&1
|
||||||
|
EOF
|
||||||
|
chmod 644 /etc/cron.d/recyclarr
|
||||||
|
msg_ok "Setup Daily Sync Cron"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
cleanup_lxc
|
cleanup_lxc
|
||||||
|
|||||||
Reference in New Issue
Block a user