install:opensuse
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
install:opensuse [2013-10-21 23:27] – Klap-in | install:opensuse [2015-08-10 13:16] (current) – replaced username with $HOME 2001:4dd0:ff00:9581:552f:20cd:616c:16b3 | ||
---|---|---|---|
Line 10: | Line 10: | ||
On **2012-11-16** I edited the script so that the config files are now in ''/ | On **2012-11-16** I edited the script so that the config files are now in ''/ | ||
+ | |||
+ | On **2015-07-02** I edited the script again so that the scripts now stay with "/ | ||
<code bash prepdw.sh> | <code bash prepdw.sh> | ||
Line 18: | Line 20: | ||
set -x | set -x | ||
- | RELEASE=' | + | RELEASE=' |
- | NEWNAME=$(echo " | + | |
- | WORKDIR='/ | + | |
NO_OF_COMP=5 | NO_OF_COMP=5 | ||
+ | NEWNAME=$(echo " | ||
+ | WORKDIR=" | ||
WWWDIR=" | WWWDIR=" | ||
NEWCONFDIR='/ | NEWCONFDIR='/ | ||
Line 30: | Line 32: | ||
# assume the standard download location | # assume the standard download location | ||
- | DLFROM=' | + | DLFROM=' |
- | DLFILE=" | + | DLFILE=" |
- | # http:// | + | |
# and get the file | # and get the file | ||
wget -O " | wget -O " | ||
Line 51: | Line 52: | ||
find " | find " | ||
chmod +x $WWWDIR/ | chmod +x $WWWDIR/ | ||
- | for DAT in $WWWDIR/ | ||
- | sed -i ' | ||
- | done | ||
- | # write config for Apache | + | # write config for Apache |
# delete .htaccess, move it into Apache' | # delete .htaccess, move it into Apache' | ||
cd " | cd " | ||
Line 63: | Line 61: | ||
< | < | ||
Options None | Options None | ||
+ | AllowOverride All | ||
< | < | ||
DirectoryIndex doku.php index.html index.htm | DirectoryIndex doku.php index.html index.htm | ||
</ | </ | ||
- | | + | |
- | Order allow, | + | # Apache 2.4 |
- | Allow from all | + | Require all granted |
+ | | ||
+ | < | ||
+ | # Apache 2.2 | ||
+ | | ||
+ | Allow from all | ||
+ | </ | ||
</ | </ | ||
EOT | EOT | ||
+ | |||
for SUBDIR in $HTACCESSLIST; | for SUBDIR in $HTACCESSLIST; | ||
- | | + | |
- | RELDIR=${RELDIR%/ | + | RELDIR=${RELDIR%/ |
- | echo "< | + | echo "< |
- | cat " | + | cat " |
- | echo "</ | + | echo "</ |
- | echo " " | + | echo " " |
- | rm " | + | rm " |
done | done | ||
- | dos2unix -o ' | + | dos2unix -o ' |
cd " | cd " | ||
Line 96: | Line 102: | ||
# Spec File for Package DokuWiki | # Spec File for Package DokuWiki | ||
# | # | ||
- | Summary: | + | Summary: |
- | Summary(de): | + | Summary(de): |
Name: | Name: | ||
- | Version: | + | Version: |
Release: | Release: | ||
- | License: | + | License: |
Group: | Group: | ||
Distribution: | Distribution: | ||
Line 107: | Line 113: | ||
URL: http:// | URL: http:// | ||
Requires: | Requires: | ||
- | Requires: | + | Requires: |
PreReq: | PreReq: | ||
PreReq: | PreReq: | ||
Line 167: | Line 173: | ||
%attr (754, wwwrun, www) / | %attr (754, wwwrun, www) / | ||
%attr (754, wwwrun, www) / | %attr (754, wwwrun, www) / | ||
+ | %attr (754, wwwrun, www) / | ||
+ | %attr (754, wwwrun, www) / | ||
%post | %post | ||
+ | |||
</ | </ | ||
You can use the '' | You can use the '' |
install/opensuse.1382390855.txt.gz · Last modified: 2013-10-21 23:27 by Klap-in