Compare commits
No commits in common. "e5cf2bc5bdecbf01c45e78fae96a29a70d42ed3f" and "34c065a7882014a277ea2e9491007773fb7703b3" have entirely different histories.
e5cf2bc5bd
...
34c065a788
4 changed files with 6 additions and 28 deletions
|
@ -1,29 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
echo Removing old sample files…
|
echo Removing old sample config files…
|
||||||
rm /var/www/html/config/*.sample.ini
|
rm /var/www/html/config/*.sample.ini
|
||||||
|
echo Copying new sample config files…
|
||||||
function write_file() {
|
cp /var/www/html/default-config/config.default.ini /var/www/html/config/config.sample.ini
|
||||||
while read line;
|
cp /var/www/html/default-config/services.default.ini /var/www/html/config/services.sample.ini
|
||||||
do
|
|
||||||
first_char=${line:0:1}
|
|
||||||
|
|
||||||
if [[ $first_char != ";" ]]; then
|
|
||||||
line="; "$line
|
|
||||||
fi
|
|
||||||
echo $line >> $2
|
|
||||||
done < $1
|
|
||||||
}
|
|
||||||
|
|
||||||
echo Setting up new sample config files…
|
|
||||||
def_conf="/var/www/html/default-config/config.default.ini"
|
|
||||||
new_conf="/var/www/html/config/config.sample.ini"
|
|
||||||
write_file $def_conf $new_conf
|
|
||||||
|
|
||||||
def_serv="/var/www/html/default-config/services.default.ini"
|
|
||||||
new_serv="/var/www/html/config/services.sample.ini"
|
|
||||||
write_file $def_serv $new_serv
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo Running HTTPD…
|
echo Running HTTPD…
|
||||||
exec apache2-foreground
|
exec apache2-foreground
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php class Core {
|
<?php class Core {
|
||||||
public static $Config;
|
public static $Config;
|
||||||
public const VERSION = "0.0.7";
|
public const VERSION = "0.0.6";
|
||||||
public static $CurrentPage;
|
public static $CurrentPage;
|
||||||
public static function root_dir(){
|
public static function root_dir(){
|
||||||
return $_SERVER['DOCUMENT_ROOT'];
|
return $_SERVER['DOCUMENT_ROOT'];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
a2enmod rewrite
|
a2enmod rewrite
|
||||||
service apache2 stop
|
service apache2 stop
|
||||||
exec bash /entrypoint.sh
|
exec apache2-foreground
|
||||||
|
|
|
@ -5,7 +5,6 @@ podman run --name mailautoconf-test \
|
||||||
-v ./src:/var/www/html/ \
|
-v ./src:/var/www/html/ \
|
||||||
-v ./config:/var/www/html/config \
|
-v ./config:/var/www/html/config \
|
||||||
-v ./test-entry.sh:/test-entry.sh \
|
-v ./test-entry.sh:/test-entry.sh \
|
||||||
-v ./entrypoint.sh:/entrypoint.sh \
|
|
||||||
--entrypoint "/bin/bash" \
|
--entrypoint "/bin/bash" \
|
||||||
php:7.4-apache \
|
php:7.4-apache \
|
||||||
/test-entry.sh
|
/test-entry.sh
|
||||||
|
|
Loading…
Reference in a new issue