-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Use installer resources for DSM6, update TCL package #4562
Changes from all commits
16d0d28
a19b24f
3a46eb0
48dfd06
8a8e621
e05045c
ed82109
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,69 +1,125 @@ | ||||||||||||
[{ | ||||||||||||
"step_title": "Basic configuration", | ||||||||||||
"items": [{ | ||||||||||||
"type": "textfield", | ||||||||||||
"desc": "Download directory", | ||||||||||||
"subitems": [{ | ||||||||||||
"key": "wizard_download_dir", | ||||||||||||
"desc": "Download directory", | ||||||||||||
"defaultValue": "/volume1/downloads", | ||||||||||||
"validator": { | ||||||||||||
"allowBlank": false, | ||||||||||||
"regex": { | ||||||||||||
"expr": "/^\\\/volume\\w*[0-9]{1,2}\\\/[^<>: */?\"]*/", | ||||||||||||
"errorText": "Path should begin with /volumename?/ where volumename can be 'volume' or also 'volumeUSB' and ? is the volume number (1-99)." | ||||||||||||
} | ||||||||||||
[ | ||||||||||||
{ | ||||||||||||
"step_title": "Basic configuration", | ||||||||||||
"items": [ | ||||||||||||
{ | ||||||||||||
"type": "combobox", | ||||||||||||
"desc": "Please select a volume to use for the download folder", | ||||||||||||
"subitems": [ | ||||||||||||
{ | ||||||||||||
"key": "wizard_volume", | ||||||||||||
"desc": "volume name", | ||||||||||||
"displayField": "display_name", | ||||||||||||
"valueField": "volume_path", | ||||||||||||
"editable": false, | ||||||||||||
"mode": "remote", | ||||||||||||
"api_store": { | ||||||||||||
"api": "SYNO.Core.Storage.Volume", | ||||||||||||
"method": "list", | ||||||||||||
"version": 1, | ||||||||||||
"baseParams": { | ||||||||||||
"limit": -1, | ||||||||||||
"offset": 0, | ||||||||||||
"location": "internal" | ||||||||||||
}, | ||||||||||||
"root": "volumes", | ||||||||||||
"idProperty": "volume_path", | ||||||||||||
"fields": [ | ||||||||||||
"display_name", | ||||||||||||
"volume_path" | ||||||||||||
] | ||||||||||||
}, | ||||||||||||
"validator": { | ||||||||||||
"fn": "{console.log(arguments);return true;}" | ||||||||||||
} | ||||||||||||
} | ||||||||||||
] | ||||||||||||
}, | ||||||||||||
{ | ||||||||||||
"type": "textfield", | ||||||||||||
"desc": "Download shared folder (using the volume chosen above)", | ||||||||||||
"subitems": [ | ||||||||||||
{ | ||||||||||||
"key": "wizard_download_dir", | ||||||||||||
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. Aaah, that is the trick, to use separate wizard variables for the volume and the share name! but this should work in the demoservice too. 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. Only the folder name is used in the worker (not the full path), maybe we need to use Edit: Yes it works with the demoservice, I just messed up earlier (I still passed on the full path) 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. Example from documentation: "data-share": {
"shares": [{
"name": "music",
"permission": {
"ro": ["AudioStation"]
}
}]
} 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. @hgy59 whichever way we go, (new wizards or patch to remove spksrc/spk/demoservice/Makefile Lines 21 to 25 in 83f850f
|
||||||||||||
"desc": "Download shared folder", | ||||||||||||
"defaultValue": "downloads", | ||||||||||||
"validator": { | ||||||||||||
"allowBlank": false, | ||||||||||||
"regex": { | ||||||||||||
"expr": "/^[\\w _-]+$/", | ||||||||||||
"errorText": "Subdirectories are not supported." | ||||||||||||
} | ||||||||||||
} | ||||||||||||
} | ||||||||||||
] | ||||||||||||
}, | ||||||||||||
{ | ||||||||||||
"type": "textfield", | ||||||||||||
"desc": "Watch a directory for torrent files and add them to transmission. Leave empty to disable", | ||||||||||||
"subitems": [ | ||||||||||||
{ | ||||||||||||
"key": "wizard_watch_dir", | ||||||||||||
"desc": "Watch directory", | ||||||||||||
"validator": { | ||||||||||||
"allowBlank": true, | ||||||||||||
"regex": { | ||||||||||||
"expr": "/^\\\/volume\\w*[0-9]{1,2}\\\/[^<>: */?\"]*/", | ||||||||||||
"errorText": "Path should begin with /volumename?/ where volumename can be 'volume' or also 'volumeUSB' and ? is the volume number (1-99)." | ||||||||||||
} | ||||||||||||
} | ||||||||||||
} | ||||||||||||
] | ||||||||||||
}, | ||||||||||||
{ | ||||||||||||
"type": "textfield", | ||||||||||||
"desc": "Directory to keep files in until torrent is complete. Leave empty to disable", | ||||||||||||
"subitems": [ | ||||||||||||
{ | ||||||||||||
"key": "wizard_incomplete_dir", | ||||||||||||
"desc": "Incomplete directory", | ||||||||||||
"validator": { | ||||||||||||
"allowBlank": true, | ||||||||||||
"regex": { | ||||||||||||
"expr": "/^\\\/volume\\w*[0-9]{1,2}\\\/[^<>: */?\"]*/", | ||||||||||||
"errorText": "Path should begin with /volumename?/ where volumename can be 'volume' or also 'volumeUSB' and ? is the volume number (1-99)." | ||||||||||||
} | ||||||||||||
} | ||||||||||||
} | ||||||||||||
] | ||||||||||||
} | ||||||||||||
}] | ||||||||||||
}, { | ||||||||||||
"type": "textfield", | ||||||||||||
"desc": "Watch a directory for torrent files and add them to transmission. Leave empty to disable", | ||||||||||||
"subitems": [{ | ||||||||||||
"key": "wizard_watch_dir", | ||||||||||||
"desc": "Watch directory", | ||||||||||||
"validator": { | ||||||||||||
"allowBlank": true, | ||||||||||||
"regex": { | ||||||||||||
"expr": "/^\\\/volume\\w*[0-9]{1,2}\\\/[^<>: */?\"]*/", | ||||||||||||
"errorText": "Path should begin with /volumename?/ where volumename can be 'volume' or also 'volumeUSB' and ? is the volume number (1-99)." | ||||||||||||
} | ||||||||||||
] | ||||||||||||
}, | ||||||||||||
{ | ||||||||||||
"step_title": "Basic configuration", | ||||||||||||
"items": [ | ||||||||||||
{ | ||||||||||||
"type": "textfield", | ||||||||||||
"desc": "Web interface username. Defaults to admin", | ||||||||||||
"subitems": [ | ||||||||||||
{ | ||||||||||||
"key": "wizard_username", | ||||||||||||
"desc": "Username" | ||||||||||||
} | ||||||||||||
] | ||||||||||||
}, | ||||||||||||
{ | ||||||||||||
"type": "password", | ||||||||||||
"desc": "Web interface password. Defaults to admin", | ||||||||||||
"subitems": [ | ||||||||||||
{ | ||||||||||||
"key": "wizard_password", | ||||||||||||
"desc": "Password" | ||||||||||||
} | ||||||||||||
] | ||||||||||||
} | ||||||||||||
}] | ||||||||||||
}, { | ||||||||||||
"type": "textfield", | ||||||||||||
"desc": "Directory to keep files in until torrent is complete. Leave empty to disable", | ||||||||||||
"subitems": [{ | ||||||||||||
"key": "wizard_incomplete_dir", | ||||||||||||
"desc": "Incomplete directory", | ||||||||||||
"validator": { | ||||||||||||
"allowBlank": true, | ||||||||||||
"regex": { | ||||||||||||
"expr": "/^\\\/volume\\w*[0-9]{1,2}\\\/[^<>: */?\"]*/", | ||||||||||||
"errorText": "Path should begin with /volumename?/ where volumename can be 'volume' or also 'volumeUSB' and ? is the volume number (1-99)." | ||||||||||||
} | ||||||||||||
] | ||||||||||||
}, | ||||||||||||
{ | ||||||||||||
"step_title": "DSM Permissions", | ||||||||||||
"items": [ | ||||||||||||
{ | ||||||||||||
"desc": "Please read <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> for details." | ||||||||||||
} | ||||||||||||
}] | ||||||||||||
}] | ||||||||||||
}, { | ||||||||||||
"step_title": "Basic configuration", | ||||||||||||
"items": [{ | ||||||||||||
"type": "textfield", | ||||||||||||
"desc": "Web interface username. Defaults to admin", | ||||||||||||
"subitems": [{ | ||||||||||||
"key": "wizard_username", | ||||||||||||
"desc": "Username" | ||||||||||||
}] | ||||||||||||
}, { | ||||||||||||
"type": "password", | ||||||||||||
"desc": "Web interface password. Defaults to admin", | ||||||||||||
"subitems": [{ | ||||||||||||
"key": "wizard_password", | ||||||||||||
"desc": "Password" | ||||||||||||
}] | ||||||||||||
}] | ||||||||||||
}, { | ||||||||||||
"step_title": "DSM Permissions", | ||||||||||||
"items": [{ | ||||||||||||
"desc": "Permissions for all download-related packages of SynoCommunity are managed with the group <b>'sc-download'</b> in DSM.<br>The group 'users' is no longer used as of DSM 6.<br>Package user will not appear on most UI settings.<br>Please read <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> for details." | ||||||||||||
}] | ||||||||||||
}] | ||||||||||||
] | ||||||||||||
} | ||||||||||||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,60 @@ | ||
[{ | ||
"step_title": "DSM Permissions", | ||
"items": [{ | ||
"desc": "Permissions for all download-related packages of SynoCommunity are managed with the group <b>'sc-download'</b> in DSM.<br>The group 'users' is no longer used as of DSM 6.<br>Package user will not appear on most UI settings.<br>Please read <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> for details." | ||
"desc": "Please read <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> for details." | ||
}, | ||
{ | ||
"desc": "<strong style='color:red'>NOTE:</strong> The package upgrade will try to set the correct permissions on your folders. If you get permission errors within Transmission, manually set Read/Write permissions for the 'sc-download' group on the reported folders using File Station." | ||
"desc": "<strong style='color:red'>NOTE:</strong> The package upgrade will try to set the correct permissions on your folders. If you get permission errors within Transmission, manually set Read/Write permissions on the reported folders using File Station." | ||
}, | ||
{ | ||
"type": "combobox", | ||
"desc": "Please select a volume to use for the download folder", | ||
"subitems": [ | ||
{ | ||
"key": "wizard_volume", | ||
"desc": "volume name", | ||
"displayField": "display_name", | ||
"valueField": "volume_path", | ||
"editable": false, | ||
"mode": "remote", | ||
"api_store": { | ||
"api": "SYNO.Core.Storage.Volume", | ||
"method": "list", | ||
"version": 1, | ||
"baseParams": { | ||
"limit": -1, | ||
"offset": 0, | ||
"location": "internal" | ||
}, | ||
"root": "volumes", | ||
"idProperty": "volume_path", | ||
"fields": [ | ||
"display_name", | ||
"volume_path" | ||
] | ||
}, | ||
"validator": { | ||
"fn": "{console.log(arguments);return true;}" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "textfield", | ||
"desc": "Download shared folder (using the volume chosen above)", | ||
"subitems": [ | ||
{ | ||
"key": "wizard_download_dir", | ||
"desc": "Download shared folder", | ||
"defaultValue": "downloads", | ||
"validator": { | ||
"allowBlank": false, | ||
"regex": { | ||
"expr": "/^[\\w _-]+$/", | ||
"errorText": "Subdirectories are not supported." | ||
} | ||
} | ||
} | ||
] | ||
}] | ||
}] | ||
}] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[{ | ||
"step_title": "Permissions DSM", | ||
"items": [{ | ||
"desc": "Les permissions de toutes les applications de SynoCommunity liés au téléchargement sont gérées par le groupe <b>'sc-download'</b> dans DSM.<br>Le groupe 'users' n'est plus utilisé depuis DSM 6.<br>L'utilisateur spécifique à l'application n'apparaît plus dans la plupart des interfaces de configuration.<br>Merci de lire <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> pour plus de détails." | ||
"desc": "Merci de lire <a target=\"_blank\" href=\"https://github.com/SynoCommunity/spksrc/wiki/Permission-Management\">Permission Management</a> pour plus de détails." | ||
}, | ||
{ | ||
"desc": "<strong style='color:red'>NOTE:</strong> La mise à jour de l'application va tenter de corriger les permissions des répertoires. En cas d'erreur de permission dans Transmission, donner les droits de Lecture/Ecriture au groupe 'sc-download' sur les répertoires mentionnés depuis File Station." | ||
"desc": "En cas d'erreur de permission dans Transmission, donner les droits de Lecture/Ecriture sur les repertoires mentionnés depuis File Station." | ||
}] | ||
}] | ||
}] |
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.
Something interesting to note:
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.
I have to test shared folders with DSM6 anyway. I will look whether dsm6 resource worker will create such links too.