Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
c11c4f7d
Commit
c11c4f7d
authored
May 17, 2010
by
vogelor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some improvements of the remote action "update ISPConfig"
parent
8143c392
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
4 deletions
+14
-4
interface/web/admin/lib/lang/de.lng
interface/web/admin/lib/lang/de.lng
+1
-0
interface/web/admin/lib/lang/en.lng
interface/web/admin/lib/lang/en.lng
+1
-0
interface/web/admin/lib/module.conf.php
interface/web/admin/lib/module.conf.php
+4
-0
interface/web/admin/templates/remote_action_ispcupdate.htm
interface/web/admin/templates/remote_action_ispcupdate.htm
+2
-2
server/mods-available/remoteaction_core_module.inc.php
server/mods-available/remoteaction_core_module.inc.php
+6
-2
No files found.
interface/web/admin/lib/lang/de.lng
View file @
c11c4f7d
...
...
@@ -39,4 +39,5 @@ $wb['Merge'] = 'Merge';
$wb
[
'Remote Users'
]
=
'Remote Benutzer'
;
$wb
[
'Remote Actions'
]
=
'Remote Aktionen'
;
$wb
[
'Do OS-Update'
]
=
'Betriebssystem Update ausführen'
;
$wb
[
'Do ISPConfig-Update'
]
=
'ISPConfig auf den neuesten Stand bringen'
;
?>
interface/web/admin/lib/lang/en.lng
View file @
c11c4f7d
...
...
@@ -41,4 +41,5 @@ $wb['Merge'] = 'Merge';
$wb
[
'Remote Users'
]
=
'Remote Users'
;
$wb
[
'Remote Actions'
]
=
'Remote Actions'
;
$wb
[
'Do OS-Update'
]
=
'Do OS-Update'
;
$wb
[
'Do ISPConfig-Update'
]
=
'Do ISPConfig-Update'
;
?>
\ No newline at end of file
interface/web/admin/lib/module.conf.php
View file @
c11c4f7d
...
...
@@ -159,6 +159,10 @@ $items[] = array( 'title' => 'Do OS-Update',
'target'
=>
'content'
,
'link'
=>
'admin/remote_action_osupdate.php'
);
$items
[]
=
array
(
'title'
=>
'Do ISPConfig-Update'
,
'target'
=>
'content'
,
'link'
=>
'admin/remote_action_ispcupdate.php'
);
$module
[
'nav'
][]
=
array
(
'title'
=>
'Remote Actions'
,
'open'
=>
1
,
'items'
=>
$items
);
...
...
interface/web/admin/templates/remote_action_ispcupdate.htm
View file @
c11c4f7d
...
...
@@ -4,7 +4,7 @@
<div
class=
"panel panel_language_add"
>
<div
class=
"pnl_formsarea"
>
<fieldset
class=
"inlineLabels"
><legend>
{tmpl_var name='do_
os
update_caption'}
</legend>
<fieldset
class=
"inlineLabels"
><legend>
{tmpl_var name='do_
ispc
update_caption'}
</legend>
<div
class=
"ctrlHolder"
>
<label
for=
"server_select"
>
{tmpl_var name='select_server_txt'}
</label>
<select
name=
"server_select"
id=
"server"
class=
"selectInput"
onchange=
"document.getElementById('OKMsg').style.visibility = 'hidden'; "
>
...
...
@@ -18,7 +18,7 @@
</tmpl_if>
<div
class=
"buttonHolder buttons"
>
<button
class=
"positive iconstxt icoPositive"
type=
"button"
value=
"{tmpl_var name='btn_do_txt'}"
onClick=
"submitForm('pageForm','admin/remote_action_
os
update.php');"
><span>
{tmpl_var name='btn_do_txt'}
</span></button>
<button
class=
"positive iconstxt icoPositive"
type=
"button"
value=
"{tmpl_var name='btn_do_txt'}"
onClick=
"submitForm('pageForm','admin/remote_action_
ispc
update.php');"
><span>
{tmpl_var name='btn_do_txt'}
</span></button>
</div>
</div>
...
...
server/mods-available/remoteaction_core_module.inc.php
View file @
c11c4f7d
...
...
@@ -147,11 +147,15 @@ class remoteaction_core_module {
/*
* Do the update
*/
exec
(
"cd /tmp"
);
$oldDir
=
getcwd
();
chdir
(
"/tmp"
);
exec
(
"rm /tmp/ISPConfig-"
.
$new_version
.
".tar.gz"
);
exec
(
"rm /tmp/ispconfig3_install -R"
);
exec
(
"wget http://www.ispconfig.org/downloads/ISPConfig-"
.
$new_version
.
".tar.gz"
);
exec
(
"tar xvfz ISPConfig-"
.
$new_version
.
".tar.gz"
);
exec
(
"cd ispconfig3_install/install"
);
chdir
(
"/tmp/ispconfig3_install/install"
);
exec
(
"touch autoupdate"
);
exec
(
"php -q autoupdate.php"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment