wok rev 25859
Fix reset menu.xml symlink when upgrade slitaz-configs (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 23 15:13:48 2025 +0000 (3 weeks ago) |
parents | 868d2a5fbe08 |
children | 9e7e3c77634f |
files | slitaz-configs/receipt |
line diff
1.1 --- a/slitaz-configs/receipt Sat Aug 23 14:52:03 2025 +0000 1.2 +++ b/slitaz-configs/receipt Sat Aug 23 15:13:48 2025 +0000 1.3 @@ -85,8 +85,8 @@ 1.4 pre_install() 1.5 { 1.6 # Save previous menu.xml symlink 1.7 - if [ -d /etc/xdg/openbox ]; then 1.8 - cp -a /etc/xdg/openbox/menu.xml /etc/xdg/openbox/menu.xml.save 1.9 + if [ -d $1/etc/xdg/openbox ]; then 1.10 + cp -a $1/etc/xdg/openbox/menu.xml $1/etc/xdg/openbox/menu.xml.save 1.11 fi 1.12 } 1.13 1.14 @@ -104,5 +104,6 @@ 1.15 esac 1.16 1.17 # Restore previous menu.xml symlink 1.18 - mv /etc/xdg/openbox/menu.xml.save /etc/xdg/openbox/menu.xml 1.19 + [ -s $1/etc/xdg/openbox/menu.xml.save ] && 1.20 + mv $1/etc/xdg/openbox/menu.xml.save $1/etc/xdg/openbox/menu.xml 1.21 }