mirror of
https://github.com/unraid/api.git
synced 2026-01-07 09:10:05 -06:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - Introduced Docker management UI components: Overview, Logs, Console, Preview, and Edit. - Added responsive Card/Detail layouts with grouping, bulk actions, and tabs. - New UnraidToaster component and global toaster configuration. - Component auto-mounting improved with async loading and multi-selector support. - UI/UX - Overhauled theme system (light/dark tokens, primary/orange accents) and added theme variants. - Header OS version now includes integrated changelog modal. - Registration displays warning states; multiple visual polish updates. - API - CPU load now includes percentGuest and percentSteal metrics. - Chores - Migrated web app to Vite; updated artifacts and manifests. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: mdatelle <mike@datelle.net> Co-authored-by: Michael Datelle <mdatelle@icloud.com>
34 lines
1.1 KiB
Bash
34 lines
1.1 KiB
Bash
#!/bin/sh
|
|
|
|
backup_file_if_exists() {
|
|
if [ -f "$1" ]; then
|
|
mv "$1" "$1.old"
|
|
fi
|
|
}
|
|
|
|
for f in etc/rc.d/rc6.d/K*unraid-api etc/rc.d/rc6.d/K*flash-backup; do
|
|
[ -e "$f" ] && chmod 755 "$f"
|
|
done
|
|
|
|
chmod +x usr/local/unraid-api/dist/cli.js
|
|
chmod +x usr/local/unraid-api/dist/main.js
|
|
|
|
rm -rf usr/local/bin/unraid-api
|
|
ln -sf ../unraid-api/dist/cli.js usr/local/bin/unraid-api
|
|
# deprecated
|
|
ln -sf ../bin/unraid-api usr/local/sbin/unraid-api
|
|
ln -sf ../local/bin/unraid-api usr/bin/unraid-api
|
|
|
|
# By default, we want to overwrite the active api-specific .env configuration on every install.
|
|
# We keep a backup in case a user needs to revert to their prior configuration.
|
|
backup_file_if_exists usr/local/unraid-api/.env
|
|
cp usr/local/unraid-api/.env.production usr/local/unraid-api/.env
|
|
|
|
# auto-generated actions from makepkg:
|
|
( cd usr/local/bin ; rm -rf corepack )
|
|
( cd usr/local/bin ; ln -sf ../lib/node_modules/corepack/dist/corepack.js corepack )
|
|
( cd usr/local/bin ; rm -rf npm )
|
|
( cd usr/local/bin ; ln -sf ../lib/node_modules/npm/bin/npm-cli.js npm )
|
|
( cd usr/local/bin ; rm -rf npx )
|
|
( cd usr/local/bin ; ln -sf ../lib/node_modules/npm/bin/npx-cli.js npx )
|