Skel Pages / Listenerfile

  • Hallo,


    ich bin es nochmal. Ich hab die Skel Pages angepasst. Werden die bei einem Update auch Überschrieben ?


    Wie schreibe ich denn die Listner File richtig das bei einem Update die Skel vorhanden bleiben ?


    Ich schnall hier im Beitrag nicht mehr ganz durch, schon zu lange her :angel:


    File hab ich diese



    Wie passe ich die richtig an das meine Skel Pages nicht Überschrieben werden ? Theme hab ich kein Custom mehr, ich habe das Default etwas angepasst

  • I have the Skel safe on /etc/imscp/skel and the Listner looks so.


    Code
    1. # i-MSCP Listener::FrontEnd::Templates::Override listener file# Copyright (C) 2016 Laurent Declercq <[email protected]>## This library is free software; you can redistribute it and/or# modify it under the terms of the GNU Lesser General Public# License as published by the Free Software Foundation; either# version 2.1 of the License, or (at your option) any later version.## This library 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# Lesser General Public License for more details.## You should have received a copy of the GNU Lesser General Public# License along with this library; if not, write to the Free Software# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA### Allows to override default i-MSCP frontEnd template files by copying your own template files.###package Listener::FrontEnd::Templates::Override;use strict;use warnings;use iMSCP::Dir;use iMSCP::EventManager;# Path to your own template filesmy $CUSTOM_THEMES_PATH = '/etc/imscp/skel/';# Please don't edit anything below this lineiMSCP::EventManager->getInstance()->register('afterSetupInstallFiles', sub { iMSCP::Dir->new( dirname => $CUSTOM_THEMES_PATH )->rcopy( "$main::imscpConfig{'CONF_DIR'}/skel" );});1;__END__


    Is that right so ? Or i have a thinking errors ? I have only edit he Skel Pages and i will safe by a Update. For a test i have to mutch edit :P


    Thanks for help


    Edit:


    Or is it so right ?



    I'm not checking it anymore. Too long ago :) Where it is right ? 1 or 2 ? :)

    Edited once, last by Peter ().

  • Ich hab gerade zwangsweise perl /var/www/imscp/engine/imscp-rqst-mngr -v ausgeführt.



    Mein Listener ist auf jeden Fall falsch. Die Skel wurden überschrieben. Kann mir jemand sagen was falsch ist ?