- Install the admin_notifications app
- Create
system-notifications.shwith the content from below on your system - Add the script to the cronjob
crontab -u www-data -e:
0 10 * * * /path/to/file/system-notifications.sh
| diff --git a/appinfo/database.xml b/appinfo/database.xml | |
| index b0628b2..5b05799 100644 | |
| --- a/appinfo/database.xml | |
| +++ b/appinfo/database.xml | |
| @@ -170,9 +170,9 @@ | |
| <field> | |
| <name>type</name> | |
| - <type>integer</type> | |
| - <notnull>true</notnull> |
| 'circle' => [ | |
| 'author' => 'Maxence Lange', | |
| 'app' => 'circles', | |
| 'since' => '12.0.0', | |
| 'parameters' => [ | |
| 'id' => [ | |
| 'since' => '12.0.0', | |
| 'required' => true, | |
| 'description' => 'The id used to identify the circle on the instance', | |
| 'example' => '42', |
system-notifications.sh with the content from below on your systemcrontab -u www-data -e:0 10 * * * /path/to/file/system-notifications.sh
| --- /etc/phpmyadmin/apache.conf 2016-12-01 11:24:41.325360620 +0100 | |
| +++ /etc/phpmyadmin/apache.conf.dpkg-new 2016-12-01 08:42:43.000000000 +0100 | |
| @@ -16,7 +16,7 @@ | |
| php_value include_path . | |
| php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp | |
| - php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-php-gettext/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/ | |
| + php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/ | |
| php_admin_value mbstring.func_overload 0 | |
| </IfModule> |
| <?php | |
| /** | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2016 Joas Schilling | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| <?php | |
| /** | |
| * @copyright Copyright (c) 2016 Joas Schilling <[email protected]> | |
| * | |
| * @license GNU AGPL version 3 or any later version | |
| * | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU Affero General Public License as | |
| * published by the Free Software Foundation, either version 3 of the | |
| * License, or (at your option) any later version. |
| An error occurred during the signature verification. The repository is not updated and the previous index files will be used. | |
| GPG error: http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04 | |
| Release: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 4ABE1AC7557BEFF9 | |
| Failed to fetch http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04/Release.gpg | |
| Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 4ABE1AC7557BEFF9 | |
| Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt. |
| Signed-off-by: Full Name <your@email> |
| <?php | |
| require_once 'lib/base.php'; | |
| \OC_Util::setupFS('admin'); | |
| \OC::$server->getUserSession()->login('admin', 'admin'); | |
| $view = new \OC\Files\View('/admin/files'); | |
| var_dump($view->rename('test/sub2/welcome2.txt', 'test/sub/welcome.txt')); |