- 
                Notifications
    You must be signed in to change notification settings 
- Fork 11
          fix: rm short-circuit in rc.unraid-api if plugin config dir is absent
          #1515
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1 +1 @@ | ||
| 1751630630443 | ||
| 1752524464371 | 
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1 +1 @@ | ||
| 1751630630198 | ||
| 1752524464066 | 
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1 +1 @@ | ||
| 1751630630343 | ||
| 1752524464213 | 
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1 +1 @@ | ||
| 1751630630571 | ||
| 1752524464631 | 
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1 +1 @@ | ||
| 1751630630810 | ||
| 1752524464761 | 
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -4,9 +4,6 @@ | |
| # shellcheck source=/dev/null | ||
| source /etc/profile | ||
|  | ||
| flash="/boot/config/plugins/dynamix.my.servers" | ||
| [[ ! -d "${flash}" ]] && echo "Please reinstall the Unraid Connect plugin" && exit 1 | ||
| [[ ! -f "${flash}/env" ]] && echo 'env=production' >"${flash}/env" | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @elibosley @ljm42 is it preferable to still write this  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this for flash backup? I think we probably should nuke it if possible and just have flash backup work off production by default. | ||
| unraid_binary_path="/usr/local/bin/unraid-api" | ||
| api_base_dir="/usr/local/unraid-api" | ||
| scripts_dir="/usr/local/share/dynamix.unraid.net/scripts" | ||
|  | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify the default environment behavior.
The command now defaults to 'production' when no environment is specified. Ensure this aligns with user expectations, as the previous implementation may have toggled between environments.
🏁 Script executed:
Length of output: 10821
Ensure switch-env toggles by default when no environment is specified
The CLI docs and developer guide show that running
unraid-api switch-envwithout-eshould toggle betweenproductionandstaging, not always set toproduction. Update the default assignment inapi/src/unraid-api/cli/switch-env.command.ts:• File: api/src/unraid-api/cli/switch-env.command.ts
Lines: 44–46
Replace:
With:
This aligns the behavior with:
switch-envwithout args to switch environments.🤖 Prompt for AI Agents