-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf
More file actions
executable file
·33 lines (29 loc) · 1.34 KB
/
conf
File metadata and controls
executable file
·33 lines (29 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
# Copyright 2010 InnoBox Devices <code@innoboxdevices.com>
# This file is part of InnoBox Backup.
#
# InnoBox Backup is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# InnoBox Backup is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with InnoBox Backup. If not, see <http://www.gnu.org/licenses/>.
echo "Installing web.py"
tar xzvf /tmp/web.py-0.34.tar.gz
cd web.py-0.34
python setup.py install
echo "Making backup staging directory accessible to Apache"
chown -R www-data /innobackup/mediawiki
chown -R www-data /var/www/innobox-backup/banners
echo "Enabling mod_filter"
ln -f -s /etc/apache2/mods-available/filter.load /etc/apache2/mods-enabled/
echo "Enabling mod_include"
ln -f -s /etc/apache2/mods-available/include.load /etc/apache2/mods-enabled/
echo "Enabling mod_substitute"
ln -f -s /etc/apache2/mods-available/substitute.load /etc/apache2/mods-enabled/