11 lines
383 B
Plaintext
11 lines
383 B
Plaintext
|
#!/bin/bash
|
||
|
# This script disables Issues and Wiki for repositories that are mirrors.
|
||
|
|
||
|
for i in \
|
||
|
`echo "SELECT repo_id FROM mirror" | /root/spacecruft-mysql | grep -v "repo_id"`
|
||
|
do echo "Repo ID: $i"
|
||
|
echo "DELETE FROM repo_unit WHERE repo_id=$i AND type=2;" | /root/spacecruft-mysql
|
||
|
echo "DELETE FROM repo_unit WHERE repo_id=$i AND type=5;" | /root/spacecruft-mysql
|
||
|
done
|
||
|
|