Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

Commit

Permalink
chore release
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Aug 19, 2017
1 parent 633f46b commit 18a3d2f
Show file tree
Hide file tree
Showing 16 changed files with 60 additions and 52 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM niiknow/docker-hostingbase:0.9.1
FROM niiknow/docker-hostingbase:0.9.2

MAINTAINER [email protected]

Expand Down Expand Up @@ -141,11 +141,11 @@ RUN \
&& rm -f /var/lib/ajenti/plugins/vh-php5.6-fpm/*.pyc \
&& rm -f /var/lib/ajenti/plugins/vh-php7.0-fpm/php*.* \
&& rm -f /var/lib/ajenti/plugins/vh-php7.0-fpm/*.pyc \
&& mkdir -p /var/lib/ajenti/plugins/vh-php7.1-fpm \
&& rm -f /var/lib/ajenti/plugins/vh/main.* \
&& rm -f /var/lib/ajenti/plugins/vh/*.pyc \
&& rm -f /var/lib/ajenti/plugins/vh/api.pyc \
&& rm -f /var/lib/ajenti/plugins/vh/processes.pyc \
&& mkdir -p /var/lib/ajenti/plugins/vh-php7.1-fpm \

# finish cleaning up
&& dpkg --configure -a \
Expand All @@ -156,7 +156,7 @@ RUN \
&& apt-get clean

# add files
ADD ./files /
COPY rootfs/. /

# update ajenti, install other things
RUN \
Expand Down
46 changes: 0 additions & 46 deletions files/etc/ajenti/vh.json

This file was deleted.

46 changes: 46 additions & 0 deletions rootfs/etc/ajenti/vh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"websites": [{
"custom_conf_toplevel": "",
"name": "phpMyAdmin",
"ssl_cert_path": "",
"maintenance_mode": false,
"ssl_key_path": "",
"locations": [{
"custom_conf_override": false,
"path_append_pattern": false,
"pattern": "[^/]\\.php(/|$)",
"custom_conf": "",
"path": "",
"match": "regex",
"backend": {
"params": {
"php_admin_values": "open_basedir = none;",
"php_flags": "",
"pm": "dynamic"
},
"type": "php7.1-fcgi"
}
}],
"owner": "root",
"extensions": {
"ajenti.plugins.vh.processes.ProcessesExtension": {
"processes": []
},
"ajenti.plugins.vh-mysql.mysql.MySQLExtension": {
"users": [],
"databases": []
}
},
"custom_conf": "",
"domains": [],
"root": "/ajenti/sites/phpMyAdmin",
"ports": [{
"spdy": false,
"ssl": false,
"host": "*",
"port": 9001,
"default": true
}],
"enabled": true
}]
}
File renamed without changes.
14 changes: 11 additions & 3 deletions files/etc/my_init.d/startup.sh → rootfs/etc/my_init.d/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,17 @@ if [[ -f /backup/.etc/passwd ]]; then
rsync -a /backup/.etc/group /etc/group
fi

# start incron after restore
cd /etc/init.d/
./incron start
# make sure runit services are running across restart
find /etc/service/ -name "down" -exec rm -rf {} \;

chown www-data:www-data /var/ngx_pagespeed_cache
chmod 750 /var/ngx_pagespeed_cache

if [ -f /etc/nginx/nginx.new ]; then
mv /etc/nginx/nginx.conf /etc/nginx/nginx.old
mv /etc/nginx/nginx.new /etc/nginx/nginx.conf
fi

# starting Vesta
echo "[i] running /root/bin/my-startup.sh"
bash /root/bin/my-startup.sh
File renamed without changes.

0 comments on commit 18a3d2f

Please sign in to comment.