4IceG / luci-app-sms-tool-js

Simple user interface to handle SMS / USSD / AT commands via sms_tool application. (LuCI JS) | OpenWrt >= 21.02
GNU General Public License v3.0
26 stars 15 forks source link

Permission Denied messages during installation #3

Closed jfrogg closed 1 year ago

jfrogg commented 1 year ago

A few Permission denied messages are generated during the installation:

root@router:~# opkg install luci-app-sms-tool-js
Installing luci-app-sms-tool-js (2.0.7-20230410) to root...
Downloading https://github.com/4IceG/Modem-extras/raw/main/myrepo/luci-app-sms-tool-js_2.0.7-20230410_all.ipk
Configuring luci-app-sms-tool-js.
//usr/lib/opkg/info/luci-app-sms-tool-js.postinst: //usr/lib/opkg/info/luci-app-sms-tool-js.postinst: //usr/lib/opkg/info/luci-app-sms-tool-js.postinst: /etc/uci-defaults/off_sms.sh: line 7: /etc/init.d/my_new_sms: Permission denied
/etc/uci-defaults/off_sms.sh: line 6: /etc/init.d/my_new_sms: Permission denied
/etc/uci-defaults/off_sms.sh: line 5: /etc/init.d/my_new_sms: Permission denied
//usr/lib/opkg/info/luci-app-sms-tool-js.postinst: line 301: /etc/init.d/my_new_sms: Permission denied
//usr/lib/opkg/info/luci-app-sms-tool-js.postinst: line 303: /etc/init.d/my_new_sms: Permission denied

I suppose some extra checking will be needed in off_sms.sh to avoid such errors.

BTW, my_new_sms file is in place, but it is not executable unlike other scripts there:

root@router:~# ll /etc/init.d/my_new_sms
-rw-rw-r--    1 root     root           579 Sep  3  2022 /etc/init.d/my_new_sms
4IceG commented 1 year ago

Okay, thanks for reporting. To fix this, just change the permissions for this file chmod +x /etc/init.d/my_new_sms. I will correct these disappearing permissions with the new version of the package.