mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-21 11:47:53 -05:00
* Draft of new Docker Based on Alpine Linux. Size ~78MB. https://github.com/FreshRSS/docker-freshrss/issues/4 https://github.com/FreshRSS/FreshRSS/issues/520 https://github.com/FreshRSS/docker-freshrss https://github.com/FreshRSS/docker-freshrss-production * Docker readme * +x execution rights prepare * Docker readme links to hub.docker.com https://hub.docker.com/r/freshrss/freshrss/
38 lines
583 B
PHP
Executable File
38 lines
583 B
PHP
Executable File
#!/usr/bin/php
|
|
<?php
|
|
require(__DIR__ . '/_cli.php');
|
|
|
|
$dirs = array(
|
|
'/',
|
|
'/cache',
|
|
'/extensions-data',
|
|
'/favicons',
|
|
'/PubSubHubbub',
|
|
'/PubSubHubbub/feeds',
|
|
'/PubSubHubbub/keys',
|
|
'/tokens',
|
|
'/users',
|
|
'/users/_',
|
|
);
|
|
|
|
$ok = true;
|
|
|
|
foreach ($dirs as $dir) {
|
|
@mkdir(DATA_PATH . $dir, 0770, true);
|
|
$ok &= touch(DATA_PATH . $dir . '/index.html');
|
|
}
|
|
|
|
if (!is_file(DATA_PATH . '/config.php')) {
|
|
$ok &= touch(DATA_PATH . '/do-install.txt');
|
|
}
|
|
|
|
file_put_contents(DATA_PATH . '/.htaccess',
|
|
"Order Allow,Deny\n" .
|
|
"Deny from all\n" .
|
|
"Satisfy all\n"
|
|
);
|
|
|
|
accessRights();
|
|
|
|
done($ok);
|