diff options
Diffstat (limited to 'install_widgets.sh')
-rwxr-xr-x | install_widgets.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/install_widgets.sh b/install_widgets.sh index 91f9fc5..42beb02 100755 --- a/install_widgets.sh +++ b/install_widgets.sh @@ -25,10 +25,11 @@ do fi done -repo=${TZ_USER_APP}/ -chmod -R a+rw ${TZ_SYS_DB}/ +[[ "$(id -u)" == "0" ]] && chmod -R a+rw ${TZ_SYS_DB}/ if [ -x /usr/bin/wrt-launcher ]; then + repo=${TZ_USER_APP}/ + wrt-launcher --list | awk 'NR>2{print $2, $5, $6}' | while read name packid appid |