diff -Naur -x '*.orig' -x '*.rej' -x '*~' nextcloud/core/templates/update.admin.php nextcloud-correct-cli-upgrade/core/templates/update.admin.php --- nextcloud/core/templates/update.admin.php 2017-08-13 12:44:44.000000000 +0200 +++ nextcloud-correct-cli-upgrade/core/templates/update.admin.php 2017-09-13 21:02:36.316755954 +0200 @@ -38,7 +38,7 @@ <div class="infogroup"> <em> <?php p($l->t('To avoid timeouts with larger installations, you can instead run the following command from your installation directory:')) ?> - <pre>./occ upgrade</pre> + <pre>sudo -u apache php /usr/share/nextcloud/occ upgrade</pre> </em> </div> </div> diff -Naur -x '*.orig' -x '*.rej' -x '*~' nextcloud/core/templates/update.use-cli.php nextcloud-correct-cli-upgrade/core/templates/update.use-cli.php --- nextcloud/core/templates/update.use-cli.php 2017-08-13 12:44:44.000000000 +0200 +++ nextcloud-correct-cli-upgrade/core/templates/update.use-cli.php 2017-09-13 21:01:40.477160841 +0200 @@ -7,8 +7,10 @@ } else { p($l->t('Please use the command line updater because automatic updating is disabled in the config.php.')); } ?><br><br> - <?php - print_unescaped($l->t('For help, see the <a target="_blank" rel="noreferrer" href="%s">documentation</a>.', [link_to_docs('admin-cli-upgrade')])); ?><br><br> + <code> +sudo -u apache php /usr/share/nextcloud/occ upgrade +</code> + <br><br> </div> </div> diff -Naur -x '*.orig' -x '*.rej' -x '*~' nextcloud/updater/index.php nextcloud-correct-cli-upgrade/updater/index.php --- nextcloud/updater/index.php 2017-08-13 12:45:10.000000000 +0200 +++ nextcloud-correct-cli-upgrade/updater/index.php 2017-09-13 21:01:40.477160841 +0200 @@ -2008,7 +2008,7 @@ var el = document.getElementById('step-maintenance-mode') .getElementsByClassName('output')[0]; if (keepActive) { - el.innerHTML = 'Maintenance mode will kept active.<br>Now trigger the migration via command line: <code>./occ upgrade</code><br>'; + el.innerHTML = 'Maintenance mode will kept active.<br>Now trigger the migration via command line: <code>sudo -u apache php /usr/share/nextcloud/occ upgrade</code><br>'; successStep('step-maintenance-mode'); currentStep('step-done'); performStep(12, performStepCallbacks[12]);