|
Lines 31-47
FLUSH PRIVILEGES;
Link Here
|
| 31 |
eof |
31 |
eof |
| 32 |
|
32 |
|
| 33 |
koha-stop-zebra $name |
33 |
koha-stop-zebra $name |
| 34 |
rm "/etc/apache2/sites-available/$name" |
34 |
[ -f "/etc/apache2/sites-available/$name" ] && \ |
| 35 |
rm "/etc/koha/sites/$name/koha-conf.xml" |
35 |
rm "/etc/apache2/sites-available/$name" |
| 36 |
rm "/etc/koha/sites/$name/zebra-biblios.cfg" |
36 |
[ -f "/etc/koha/sites/$name/koha-conf.xml" ] && \ |
| 37 |
rm "/etc/koha/sites/$name/zebra-authorities.cfg" |
37 |
rm "/etc/koha/sites/$name/koha-conf.xml" |
| 38 |
rm "/etc/koha/sites/$name/zebra-authorities-dom.cfg" |
38 |
[ -f "/etc/koha/sites/$name/zebra-biblios.cfg" ] && \ |
| 39 |
rm "/etc/koha/sites/$name/zebra.passwd" |
39 |
rm "/etc/koha/sites/$name/zebra-biblios.cfg" |
| 40 |
rmdir "/etc/koha/sites/$name" |
40 |
[ -f "/etc/koha/sites/$name/zebra-authorities.cfg" ] && \ |
| 41 |
rm -r "/var/lock/koha/$name" |
41 |
rm "/etc/koha/sites/$name/zebra-authorities.cfg" |
| 42 |
rm -r "/var/log/koha/$name" |
42 |
[ -f "/etc/koha/sites/$name/zebra-authorities-dom.cfg" ] && \ |
| 43 |
rm -r "/var/run/koha/$name" |
43 |
rm "/etc/koha/sites/$name/zebra-authorities-dom.cfg" |
| 44 |
deluser --quiet "$name-koha" |
44 |
[ -f "/etc/koha/sites/$name/zebra.passwd" ] && \ |
|
|
45 |
rm "/etc/koha/sites/$name/zebra.passwd" |
| 46 |
[ -d "/etc/koha/sites/$name" ] && \ |
| 47 |
rmdir "/etc/koha/sites/$name" |
| 48 |
[ -d "/var/lock/koha/$name" ] && \ |
| 49 |
rm -r "/var/lock/koha/$name" |
| 50 |
[ -d "/var/log/koha/$name" ] && \ |
| 51 |
rm -r "/var/log/koha/$name" |
| 52 |
[ -d "/var/run/koha/$name" ] && \ |
| 53 |
rm -r "/var/run/koha/$name" |
| 54 |
getent passwd "$name-koha" > /dev/null && deluser --quiet "$name-koha" |
| 45 |
a2dissite "$name" |
55 |
a2dissite "$name" |
| 46 |
done |
56 |
done |
| 47 |
|
57 |
|
| 48 |
- |
|
|