test
This commit is contained in:
parent
660f451a6e
commit
7c8c81d3d1
@ -179,8 +179,8 @@ msg_ok "Configured PHP-FPM Pool"
|
|||||||
|
|
||||||
msg_info "Configuring Piler Web GUI"
|
msg_info "Configuring Piler Web GUI"
|
||||||
# Check if config-site.php already exists (created by .deb package)
|
# Check if config-site.php already exists (created by .deb package)
|
||||||
if [ ! -f /var/www/piler/config-site.php ]; then
|
if [ ! -f /var/piler/www/config-site.php ]; then
|
||||||
cat <<EOF >/var/www/piler/config-site.php
|
cat <<EOF >/var/piler/www/config-site.php
|
||||||
<?php
|
<?php
|
||||||
\$config['SITE_NAME'] = 'Piler Email Archive';
|
\$config['SITE_NAME'] = 'Piler Email Archive';
|
||||||
\$config['SITE_URL'] = 'http://${LOCAL_IP}';
|
\$config['SITE_URL'] = 'http://${LOCAL_IP}';
|
||||||
@ -208,7 +208,7 @@ if [ ! -f /var/www/piler/config-site.php ]; then
|
|||||||
\$config['MEMCACHED_PREFIX'] = 'piler';
|
\$config['MEMCACHED_PREFIX'] = 'piler';
|
||||||
\$config['MEMCACHED_TTL'] = 3600;
|
\$config['MEMCACHED_TTL'] = 3600;
|
||||||
|
|
||||||
\$config['DIR_BASE'] = '/var/www/piler';
|
\$config['DIR_BASE'] = '/var/piler/www';
|
||||||
\$config['DIR_ATTACHMENT'] = '/var/piler/store';
|
\$config['DIR_ATTACHMENT'] = '/var/piler/store';
|
||||||
|
|
||||||
\$config['ENCRYPTION_KEY'] = '${PILER_KEY}';
|
\$config['ENCRYPTION_KEY'] = '${PILER_KEY}';
|
||||||
@ -227,16 +227,16 @@ if [ ! -f /var/www/piler/config-site.php ]; then
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R piler:piler /var/www/piler
|
chown -R piler:piler /var/piler/www
|
||||||
chmod 755 /var/www/piler
|
chmod 755 /var/piler/www
|
||||||
msg_ok "Installed Piler Web GUI"
|
msg_ok "Configured Piler Web GUI"
|
||||||
|
|
||||||
msg_info "Configuring Nginx"
|
msg_info "Configuring Nginx"
|
||||||
cat <<EOF >/etc/nginx/sites-available/piler
|
cat <<EOF >/etc/nginx/sites-available/piler
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
root /var/www/piler;
|
root /var/piler/www;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
access_log /var/log/nginx/piler-access.log;
|
access_log /var/log/nginx/piler-access.log;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user