diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2020-07-14 14:44:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 14:44:23 +0300 |
commit | 25a22f0db3eecf09d22c3c24ed18c8b17fa70dbf (patch) | |
tree | 53a34583c3bee5108476ea9c40655323c5627be3 /appinfo | |
parent | 00cb4654b8048e8a29bb51599a47825c4be27dab (diff) | |
parent | 312cdf1eaa5b321e21953aa7ad8ac8ae34179cfc (diff) |
Merge pull request #110 from nextcloud/techdebt/noid/use-repair-step
Use repair step instead of install.php and update.php
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/info.xml | 5 | ||||
-rw-r--r-- | appinfo/install.php | 24 | ||||
-rw-r--r-- | appinfo/update.php | 24 |
3 files changed, 5 insertions, 48 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml index 268c0a1..bace50b 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -20,6 +20,11 @@ <dependencies> <nextcloud min-version="20" max-version="20" /> </dependencies> + <repair-steps> + <post-migration> + <step>OCA\Survey_Client\Migration\SendAdminNotification</step> + </post-migration> + </repair-steps> <settings> <admin>OCA\Survey_Client\Settings\AdminSettings</admin> <admin-section>OCA\Survey_Client\Settings\AdminSection</admin-section> diff --git a/appinfo/install.php b/appinfo/install.php deleted file mode 100644 index 1020531..0000000 --- a/appinfo/install.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php -/** - * @author Joas Schilling <coding@schilljs.com> - * - * @copyright Copyright (c) 2016, ownCloud, Inc. - * @license AGPL-3.0 - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License, version 3, - * along with this program. If not, see <http://www.gnu.org/licenses/> - * - */ - -if (!\OC::$server->getJobList()->has('OCA\Survey_Client\BackgroundJobs\MonthlyReport', null)) { - \OC::$server->getJobList()->add('OCA\Survey_Client\BackgroundJobs\AdminNotification'); -} diff --git a/appinfo/update.php b/appinfo/update.php deleted file mode 100644 index 1020531..0000000 --- a/appinfo/update.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php -/** - * @author Joas Schilling <coding@schilljs.com> - * - * @copyright Copyright (c) 2016, ownCloud, Inc. - * @license AGPL-3.0 - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License, version 3, - * along with this program. If not, see <http://www.gnu.org/licenses/> - * - */ - -if (!\OC::$server->getJobList()->has('OCA\Survey_Client\BackgroundJobs\MonthlyReport', null)) { - \OC::$server->getJobList()->add('OCA\Survey_Client\BackgroundJobs\AdminNotification'); -} |