You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: update activation code removal script to delete by default
- Changed the activation code removal script to use a dry-run flag instead of a self-delete flag, enhancing safety during execution.
- Updated the plugin file to reflect the removal of the --delete option, ensuring consistency with the new script behavior.
Copy file name to clipboardExpand all lines: plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/scripts/activation_code_remove
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -34,16 +34,16 @@
34
34
35
35
# Default flags
36
36
DEBUG_MODE=false
37
-
SELF_DELETE=false
37
+
DRY_RUN=false
38
38
REMOVE_SETUP_FLAG=false
39
39
# Check for flags
40
40
forargin"$@";do
41
41
case$argin
42
42
--debug)
43
43
DEBUG_MODE=true
44
44
;;
45
-
--delete)
46
-
SELF_DELETE=true
45
+
--dry-run)
46
+
DRY_RUN=true
47
47
;;
48
48
--remove-setup-flag)
49
49
REMOVE_SETUP_FLAG=true
@@ -125,7 +125,7 @@ if [[ -f "$ACTIVATION_SETUP_FLAG" ]]; then
125
125
debug_echo "Setup flag removed"
126
126
fi
127
127
128
-
if [[ $SELF_DELETE==true ]];then
128
+
if [[ $DRY_RUN==false ]];then
129
129
debug_echo "Deleting activation code related setup and php files"
0 commit comments