Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send activity notify/e-mail to admin when app update is available #533

Closed
markushub opened this issue Dec 5, 2020 · 3 comments
Closed

Comments

@markushub
Copy link

Steps to reproduce

When using the website of a nextcloud instance there is a notify for app update.
Not all spare-time admins logon to webpage of every nextcloud instance every day.
Looking manual for updates is boring.

Expected behaviour

option for send e-mail to admin or push notify when app upates are available integrated inside nextcloud activity.

Actual behaviour

no e-mail and no push notify.
Only solutions outside from nextcloud with external scripts sends mail about app updates.

Server configuration

Operating system: linux

Web server: apache 2.4

Database: mariadb

PHP version: 7.3

Nextcloud version: (see Nextcloud admin page) 20.0.2

Where did you install Nextcloud from: tar.gz

Signing status:

Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.

No errors have been found.

List of activated apps:
It's a feature request not a bug

Nextcloud configuration:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or

Insert your config.php content here
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no

Client configuration

Browser: Firefox, Chrome ...

Operating system:

Logs

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@joshtrichards
Copy link
Member

Hi @markushub Thanks for participating in the community. I get notifications all updates pushed to my phone via the Android app. You do have to have your client app logged into an account with admin privileges. It's handled by the shipped app "Update notification" which is enabled unless it gets manually overridden.

I don't know what this has to do with the activity app though. :-)

@markushub
Copy link
Author

The weak point is that admin privileges required to get notify. My default user is not an admin user.

In the meantime it happens a lot of changes. My workaround was/is an auto update script.

#LOGNAME=logfolder/gocloud_updates.md
NCTEXT="Everything up to date"

CHECHNC=$(occ update:check --no-ansi -n)
CHECHRC=$(occ app:update --all --no-ansi -n --showonly)
if [ "${CHECHNC}" = "${NCTEXT}" ] && [ -z "${CHECHRC}" ]; then
    echo -e "\n# Updatecheck ${DATE}\nOK"
else
    echo -e "\n# Updatefound ${DATE}\n"
    occ update:check --no-ansi -n | tee -a ${LOGNAME}
    occ app:update --all >> ${LOGNAME}
fi

I don't know what this has to do with the activity app though. :-)

You are right. Sorry it's misplaced.

@joshtrichards
Copy link
Member

But only the admin can install updates. :)

In the mobile app for push notifications: you can log into multiple NC accounts at the same time. If you do this, you'll receive admin notifications while still being able to use your day to day non-admin account.

In email: As long as you configure an email account on your admin account, you'll also get email notifications about updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants