nandan Posted August 29, 2011 Share Posted August 29, 2011 Hallo, gibt es eine M?glichkeit das schreiben von neuen Configs per mySQL zu initieren anstatt das klicken in dem Webinterface? Ich muss doch bestimmt nur irgendwo eine 1 setzen oder so? Gr?sse Link to comment Share on other sites More sharing options...
nandan Posted August 29, 2011 Author Share Posted August 29, 2011 achja, nen aufruf einer datei per shell ginge auch Link to comment Share on other sites More sharing options...
arnoldB Posted August 29, 2011 Share Posted August 29, 2011 Korrekt, siehe http://redmine.froxlor.org/issues/871 Link to comment Share on other sites More sharing options...
nandan Posted August 29, 2011 Author Share Posted August 29, 2011 Damit schreibt er doch aber die configs nicht neu. Zumindest passiert es bei mir nicht Link to comment Share on other sites More sharing options...
arnoldB Posted August 29, 2011 Share Posted August 29, 2011 Wurde die Neuerstellung der Configs beauftragt ("Configs neuschreiben" bzw. ?nderung der Domain/FTP/NS/Einstellungen/etc.)? Cronjob korrekt konfiguriert? Hast du die Datei mit --force aufgerufen? Link to comment Share on other sites More sharing options...
nandan Posted August 29, 2011 Author Share Posted August 29, 2011 Ich hab alles automatisiert in einem script gebaut (baue gerade ein Froxlor openVZ Image) das ?ndert alle relevanten Daten in der Mysql-DB Nun muss ich dem ding noch beibringen alle Configs neu zu schreiben ohne das ich an das Webpanel ?berhaupt ran komme. Ich kann euch das openVZ image dann sehr gerne zur verf?gung stellen wenn Ihr daran interesse habt. Link to comment Share on other sites More sharing options...
nandan Posted August 29, 2011 Author Share Posted August 29, 2011 Als kleine Info: mysql -u root -p'PASSWORD' -e "USE froxlor; UPDATE panel_admins SET password= MD5 ( \"$PASS\" ) WHERE adminid=1;" mysql -u root -p'PASSWORD' -e "USE froxlor; UPDATE panel_ipsandports SET ip = \"$IP\" WHERE panel_ipsandports.id =1;" mysql -u root -p'PASSWORD' -e "UPDATE froxlor.panel_settings SET value = \"admin@$HOST\" WHERE panel_settings.settingid =2;" So sieht das ganze in meinem script aus... Link to comment Share on other sites More sharing options...
arnoldB Posted August 29, 2011 Share Posted August 29, 2011 Froxlor kann doch gar nicht herausfinden, das du o.g. commands ausgef?hrt hast. Um eine Neugenerierung der Configs zu veranlassen, f?hre bitte den folgenden SQL-code aus und warte bis der Cronjob das abgearbeitet hat: INSERT INTO `panel_tasks` SET `type` = '1'; Link to comment Share on other sites More sharing options...
nandan Posted August 29, 2011 Author Share Posted August 29, 2011 Genau das wollte ich wissen thx Link to comment Share on other sites More sharing options...
Question
nandan
Hallo,
gibt es eine M?glichkeit das schreiben von neuen Configs per mySQL zu initieren anstatt das klicken in dem Webinterface?
Ich muss doch bestimmt nur irgendwo eine 1 setzen oder so?
Gr?sse
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.