Fix two findings from full codebase audit
- apply.sh: correct comment from 'one prior generation' to 'two prior generations (.1 and .2)' — rotation has always kept three log files - uninstall.sh: add sync comment on find paths to match WEBUI_CANDIDATES in patch/patch_ui.py, preventing silent drift if a new path is added
This commit is contained in:
@@ -107,6 +107,7 @@ while IFS= read -r backup; do
|
||||
mv "$backup" "$original"
|
||||
echo " Restored: $original"
|
||||
RESTORED=1
|
||||
# Keep these paths in sync with WEBUI_CANDIDATES in patch/patch_ui.py
|
||||
done < <(find /usr/share/truenas /usr/share/truenas-ui /var/www/truenas \
|
||||
-name "*.js.pre-truecloud-patch" 2>/dev/null)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user