← Back to team overview

torios-dev team mailing list archive

Re: [Torios] Update checker/script

 

On 04/08/2015 08:01 AM, Jörn Schönyan wrote:
> Am Mittwoch, den 08.04.2015, 07:52 -0500 schrieb Israel:
>
>
>> Hi Jörn!
>> Great to hear from you!
>> Wouldn't I need to install update-manager?  We are trying to avoid
>> bringing in a whole lot of stuff.  But it might be worth checking out
>> update-manager-text.  That could possibly be used in a script, as
>> well.
> I think only update-manager-text and update-notifier-common would be
> really necessary. Quite flexible and small.
>
>> -- 
>> Regards
>>
>> -Israel
>> ToriOS Team
>
Hi,
I just stumbled across:
some a policykit file, so let people in admin group install, update,
etc... without using a password.
http://askubuntu.com/questions/98006/how-do-i-prevent-policykit-from-asking-for-a-password

[Install package file]
Identity=unix-group:sudo
Action=org.debian.apt.install-file;org.debian.apt.update-cache;org.debian.apt.install-or-remove-packages;org.debian.apt.upgrade-packages
ResultActive=yes


This little rule would be enough to run apt-get update, etc... without
the user needing to interact much.

We could create something like
~/.update-settings
and have a script to configure if the user would want automatic updates
in the background, or not.
Then make a startup script that checks apt, and updates.  I could also
make it run from sdesk, and check every day, or week, or whatever.  And
then change the icon and show the user they have updates to install.  Of
course there will be no password needed for the sudo group to do this.

Thoughts?  Good idea/bad idea?

-- 
Regards

-Israel
ToriOS Team