Exit if no config files found.
This commit is contained in:
parent
a6b2039d45
commit
e08ce7cf8a
|
@ -1,8 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# load config files
|
||||
[ -f /etc/chiliproject_doxygen ] && source /etc/chiliproject_doxygen
|
||||
[ -f ~/etc/chiliproject_doxygen ] && source ~/etc/chiliproject_doxygen
|
||||
if [ -f /etc/chiliproject_doxygen ]; then
|
||||
source /etc/chiliproject_doxygen
|
||||
elif [ -f ~/etc/chiliproject_doxygen ]; then
|
||||
source ~/etc/chiliproject_doxygen
|
||||
else
|
||||
echo "Config file not found ;-("
|
||||
exit -1
|
||||
fi
|
||||
|
||||
# table
|
||||
project_id=
|
||||
|
|
|
@ -1,8 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# load config files
|
||||
[ -f /etc/rhodecode_chiliproject ] && source /etc/rhodecode_chiliproject
|
||||
[ -f ~/etc/rhodecode_chiliproject ] && source ~/etc/rhodecode_chiliproject
|
||||
if [ -f /etc/rhodecode_chiliproject ]; then
|
||||
source /etc/rhodecode_chiliproject
|
||||
elif [ -f ~/etc/rhodecode_chiliproject ]; then
|
||||
source ~/etc/rhodecode_chiliproject
|
||||
else
|
||||
echo "Config file not found ;-("
|
||||
exit -1
|
||||
fi
|
||||
|
||||
# === REMOVE ALL BROKEN REPOSITORY LINKS IN CHILIPROJECT MYSQL DATABASE ===
|
||||
ALL_MYSQL_REPOS=`mysql -h$CHILI_MYSQL_HOSTNAME -u $CHILI_MYSQL_USER -e "SELECT url,root_url,id FROM $CHILI_MYSQL_DBNAME.repositories WHERE type='Mercurial' OR type='Repository::Mercurial'" | grep -v tables_col|xargs|sed "s/ /\n/g"|tail -n+4`
|
||||
|
|
Loading…
Reference in New Issue