-
-
Notifications
You must be signed in to change notification settings - Fork 268
re-numbered 00_ 01_ and 99_ scripts to get 00_ 01_ and 99_ free #1051
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
re-numbered 00_ 01_ and 99_ scripts to get 00_ 01_ and 99_ free #1051
Conversation
…eserved for user scripts see #1022 (comment)
|
Do not yet merge it. |
|
I cannot do a re-numbering with reasonable effort Therefore re-numbering of generic scripts results For example when I use "BACKUP=NETFS" -Source prep/default/00_remove_workflow_conf.sh -Source prep/default/02_translate_url.sh -Source prep/default/03_translate_tape.sh -Source prep/default/04_check_output_scheme.sh +Source prep/default/02_remove_workflow_conf.sh +Source prep/default/03_translate_url.sh +Source prep/default/04_translate_tape.sh Source prep/NETFS/default/05_check_NETFS_requirements.sh -Source prep/default/05_check_keep_old_output_copy_var.sh +Source prep/default/05_check_output_scheme.sh +Source prep/default/06_check_keep_old_output_copy_var.sh ... +Source backup/default/98_post_backup_script.sh Source backup/NETFS/default/98_umount_NETFS_dir.sh -Source backup/default/99_post_backup_script.sh I.e. before it was: Source prep/default/03_translate_tape.sh Source prep/default/04_check_output_scheme.sh Source prep/NETFS/default/05_check_NETFS_requirements.sh Source prep/default/05_check_keep_old_output_copy_var.sh Source prep/NETFS/default/06_mount_NETFS_path.sh ... Source backup/NETFS/default/97_remove_lock.sh Source backup/NETFS/default/98_umount_NETFS_dir.sh Source backup/default/99_post_backup_script.sh and after re-numbering it gets: Source prep/default/04_translate_tape.sh Source prep/NETFS/default/05_check_NETFS_requirements.sh Source prep/default/05_check_output_scheme.sh Source prep/default/06_check_keep_old_output_copy_var.sh Source prep/NETFS/default/06_mount_NETFS_path.sh ... Source backup/NETFS/default/97_remove_lock.sh Source backup/default/98_post_backup_script.sh Source backup/NETFS/default/98_umount_NETFS_dir.sh I would have to verify and adapt for each backup method Perhaps at a later time when the issue becomes more pressing But for now I keep it as is to avoid regressions. |
|
Actually renumbering everything from 501 to 599 sounds like a nice idea. Should be possible to do without breaking anything and gives lots of space before and after. Or somehow map 01..99 to 100..900 evenly. |
|
I am thinking about a dumb adding of a trailing '0' With the first step the old numbers 01 and 99 The only old number that is still at the edge At the end the topology/neighbourhood did not change. I think even the symlinks can be easier adapted this way This way it looks sufficiently easy and fail-safe. |
|
Furthermore because in very most cases only a trailing '0' |
|
See #1053 |
…rticular_for_user_scripts_see_comment_in_pull_request_1051 Renumbering all scripts (NM becomes NM0) to get more free number space in particular for user scripts, cf. #1051 (comment) Renumbered by ading a trailing 0 so that 12 becomes 120 except 00 which becomes 005 and adapted symlinks to point again to the right re-numbered scripts, cf #1051 Adapted the SourceStage function in framework-functions.sh for scripts with the new 3-number digits (instead of two before). Adapted the texts (in particular the comments in the scripts) to the new 3-number digits of the scripts where possible. Nevertheless this renumbering may cause regressions for special cases that I missed. This renumbering will cause regressions for users who have their own 2-digit scripts because now only 3-digit scripts will work (see the SourceStage function in framework-functions.sh) so that 2-digit user scripts must be renamed to 3-digit names. Depending on how many users are hit by that regression we could later think about an automated way how to support also 2-digit scripts: My immediate idea is to handle a NM_name script as if its name was NM0_name (or perhaps to simply rename them automatically from NM_name to NM0_name? think about
re-numbered 00_ 01_ and 99_ scripts
to get 00_ 01_ and 99_ free and reserved
for user scripts see
#1022 (comment)