Skip to content

Commit 99ca2fc

Browse files
author
vogelor
committed
Added the config-file for remote-actions to the installer
1 parent cdaae64 commit 99ca2fc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,10 @@ public function install_ispconfig()
12171217
$content = str_replace('{language}', $conf['language'], $content);
12181218

12191219
wf("$install_dir/server/lib/$configfile", $content);
1220-
1220+
1221+
//* Create the config file for remote-actions
1222+
$content = "<?php\n$maxid_remote_actions = 1\n?>";
1223+
wf("$install_dir/server/lib/remote_actions.inc.php", $content);
12211224

12221225
//* Enable the server modules and plugins.
12231226
// TODO: Implement a selector which modules and plugins shall be enabled.
@@ -1319,6 +1322,10 @@ public function install_ispconfig()
13191322
//* make sure that the server config file (not the interface one) is only readable by the root user
13201323
exec("chmod 600 $install_dir/server/lib/$configfile");
13211324
exec("chown root:root $install_dir/server/lib/$configfile");
1325+
1326+
exec("chmod 600 $install_dir/server/lib/remote_actions.inc.php");
1327+
exec("chown root:root $install_dir/server/lib/remote_actions.inc.php");
1328+
13221329
if(@is_file("$install_dir/server/lib/mysql_clientdb.conf")) {
13231330
exec("chmod 600 $install_dir/server/lib/mysql_clientdb.conf");
13241331
exec("chown root:root $install_dir/server/lib/mysql_clientdb.conf");

0 commit comments

Comments
 (0)