Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,110 of 9,110 pages
About the help in other languages
All help pages

exp:cleanuppolicies

Entfernt Richtlinien von Modulen, die es nicht mehr gibt (Probelauf, außer mit --apply).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/cleanuppolicies.md

On this page

This page is a translation. Read the English original

exp:cleanuppolicies

Entfernt Richtlinien von Modulen, die es nicht mehr gibt (Probelauf, außer mit --apply).

Skript bin/php/cleanuppolicies.php, Code in kernel/private/classes/commands/cleanuppolicies.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:cleanuppolicies --help
php bin/php/cleanuppolicies.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Remove from database policies defined on module which do not exist in a modules folder
according to settings from module.ini/[ModuleSettings]/ExtensionRepositories.
Without --apply nothing is written: the script lists the policies it would remove. --dry-run is
still accepted and means the same as no flag; --apply together with --dry-run is a usage error
(exit 2). With --apply the script waits 10 seconds before it removes anything (-n: do not wait)
and checks afterwards that none is left. Prints PASS or FAIL at the end.

Example: ./bin/php/cleanuppolicies.php
         ./bin/php/cleanuppolicies.php --apply -n

Optionen

OptionWertHilfe
--applyDie Richtlinien entfernen (Standard ist ein Probelauf, der sie auflistet und nichts ändert)
--dry-runDer Standard, beibehalten für Skripte, die die Option übergeben: die Richtlinien auflisten, die entfernt würden, nichts ändern
-nMit --apply: vor dem Entfernen nicht 10 Sekunden warten

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/cleanuppolicies.php, kernel/private/classes/commands/cleanuppolicies.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x