updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / mindtouch / mindtouch-install-config
blob1c769f728927181e3a84f6eaa9fd55a7531b5271
1 #!/bin/bash
3 if [[ $UID != 0 ]]; then
4 echo You need to run this script as root.
5 exit 1
6 fi
8 cd /usr/share/webapps/mindtouch/config
10 CONFIG_FILES="LocalSettings.php mindtouch.host.conf mindtouch.deki.startup.xml"
11 SUCCESS=true
12 for file in $CONFIG_FILES; do
13 install -m 644 $file /etc/webapps/mindtouch
14 if [[ "$?" != "0" ]]; then
15 SUCCESS=false
17 done
19 if [[ $SUCCESS == true ]]; then
20 rm $CONFIG_FILES