Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| omv8:omv8_plugins:scripts [2025/12/25 08:16] – [Scripts tab] chente | omv8:omv8_plugins:scripts [2025/12/25 08:50] (current) – [Run] chente | ||
|---|---|---|---|
| Line 78: | Line 78: | ||
| {{ : | {{ : | ||
| - | * Press the **Add** button | + | * **Add** button |
| - | * **Name**: Name used to save and execute the script. | + | * **Add** |
| - | * **Extension**: | + | * **Name**: Name used to save and execute the script. |
| - | * **Script**: Script code; you can paste from clipboard. | + | * **Extension**: |
| - | * **Testing arguments**: | + | * **Script**: Script code; you can paste from clipboard. |
| - | * Press **Save**. | + | * **Testing arguments**: |
| - | * The script is stored in the OMV database. | + | * **Add Python** – Create a new Python script. |
| + | | ||
| + | * **Import** – Import multiple scripts from the server filesystem. | ||
| + | * **Import one** – Import a single script from the server filesystem. | ||
| + | * **Sync changes from file** – Update the script in the database with modifications made in the file copy. | ||
| + | | ||
| * A copy is saved in the shared folder defined in the Settings tab. | * A copy is saved in the shared folder defined in the Settings tab. | ||
| * A line with the script data appears in the Scripts form. | * A line with the script data appears in the Scripts form. | ||
| - | * Press the **Add** button and use **Import** to import multiple scripts from the server file system. | ||
| - | * Press the **Add** button and use **Import one** to import a single script from the server file system. | ||
| === Edit === | === Edit === | ||
| - | * Select a script and press **Edit** | + | * Select a script and press **Edit**. Modify the script and/or arguments, then press **Save** |
| - | * Press **Save** | + | |
| === Delete === | === Delete === | ||
| - | * Select a script and press **Delete** | + | * Select a script and press **Delete**. This removes |
| + | |||
| + | === Check using Shellcheck or Pylint === | ||
| + | |||
| + | * Run syntax/ | ||
| === Run === | === Run === | ||
| - | {{ : | + | {{ : |
| * Select a script and press **Run** to manually execute it. | * Select a script and press **Run** to manually execute it. | ||
| * A code box shows execution output. | * A code box shows execution output. | ||
| Line 107: | Line 113: | ||
| < | < | ||
| - | </ | + | </ |
| In this dialog box the output of the script will be displayed.< | In this dialog box the output of the script will be displayed.< | ||
| Dialogs generated with Bash Dialog or similar cannot be interacted with or displayed. | Dialogs generated with Bash Dialog or similar cannot be interacted with or displayed. | ||
| </ | </ | ||
| + | |||
| + | === Git === | ||
| + | |||
| + | * Manage scripts versioned in a Git repository. | ||
| === Docs === | === Docs === | ||
| Line 122: | Line 132: | ||
| < | < | ||
| \\ | \\ | ||
| - | {{ : | + | {{ : |
| * Displays a list of created scheduled jobs. You can create, edit, delete, or run them manually. | * Displays a list of created scheduled jobs. You can create, edit, delete, or run them manually. | ||
| Line 128: | Line 138: | ||
| === Create === | === Create === | ||
| - | {{ : | + | {{ : |
| * Press **Create** to define a script schedule: | * Press **Create** to define a script schedule: | ||
| * **Enabled**: | * **Enabled**: | ||