Skip to content

Commit 1401414

Browse files
committed
force url
1 parent 324cb4c commit 1401414

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

web/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ RUN apt-get update -y && apt-get upgrade -y
44
RUN apt-get install -y libpng-dev nano git
55
RUN apt-get install -y zlib1g-dev zip libzip-dev libzip4
66
RUN docker-php-ext-install mysqli exif pdo gd zip pdo_mysql mysqli
7+
RUN a2enmod rewrite
78
#RUN docker-php-ext-enable mysqli
89

910

web/cleanupaftersetup.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,27 @@ function delete_directory($dirname) {
1818
}
1919

2020

21+
22+
function config_set($config_file, $section, $key, $value) {
23+
$config_data = parse_ini_file($config_file, true);
24+
$config_data[$section][$key] = $value;
25+
$new_content = '';
26+
foreach ($config_data as $section => $section_content) {
27+
$section_content = array_map(function($value, $key) {
28+
return "$key=$value";
29+
}, array_values($section_content), array_keys($section_content));
30+
$section_content = implode("\n", $section_content);
31+
$new_content .= "[$section]\n$section_content\n";
32+
}
33+
file_put_contents($config_file, $new_content);
34+
}
35+
36+
37+
38+
39+
2140
chdir('..');
2241
delete_directory("setup");
42+
config_set("flyspray.conf.php","general","force_baseurl","https://task.jopr.cz/");
2343
echo '<a href="../">You can now use Flyspray.</a>';
2444
?>

0 commit comments

Comments
 (0)