Skip to content
Snippets Groups Projects
Commit 1de4feca authored by Bob Mottram's avatar Bob Mottram
Browse files

Add debug

parent 4ebdd847
No related branches found
No related tags found
No related merge requests found
......@@ -90,15 +90,12 @@ if [ -d "$PROJECT_DIR" ]; then
chmod -R +r /usr/share/${PROJECT_NAME}
fi
echo "test0"
if ! ${PROJECT_NAME} -c "$CONFIGURATION_FILE"; then
exit 453536
fi
#rebuild_exim_with_socks
echo "test1"
install_dynamicdns
echo "test2"
torrc_migrate
nodejs_upgrade
apt-get -yq -t stretch-backports install certbot
......
......@@ -475,18 +475,23 @@ function upgrade_inadyn_config {
}
function install_dynamicdns {
echo "************ 1"
if [[ $SYSTEM_TYPE == "mesh"* ]]; then
return
fi
echo "************ 2"
if [[ $ONION_ONLY != "no" ]]; then
return
fi
echo "************ 3"
CURR_INADYN_COMMIT=$(get_completion_param "inadyn commit")
if [[ "${CURR_INADYN_COMMIT}" == "${INADYN_COMMIT}" ]]; then
return
fi
echo "************ 4"
if [ -f /usr/local/sbin/inadyn ]; then
if [ -d "$INSTALL_DIR/inadyn" ]; then
rm -rf "$INSTALL_DIR/inadyn"
......@@ -506,6 +511,7 @@ function install_dynamicdns {
apt-get -yq install build-essential curl libgnutls28-dev automake1.11
apt-get -yq install gnutls-dev libconfuse-dev
echo "************ 5"
if [ ! -d "$INSTALL_DIR/inadyn" ]; then
if [ -d /repos/inadyn ]; then
mkdir "$INSTALL_DIR/inadyn"
......@@ -516,17 +522,20 @@ function install_dynamicdns {
git_clone "$INADYN_REPO" "$INSTALL_DIR/inadyn"
fi
fi
echo "************ 6"
if [ ! -d "$INSTALL_DIR/inadyn" ]; then
echo 'inadyn repo not cloned'
echo -n | openssl s_client -showcerts -connect github.com:443 -CApath /etc/ssl/certs
exit 6785
fi
echo "************ 7"
cd "$INSTALL_DIR/inadyn" || exit 246824684
git checkout "$INADYN_COMMIT" -b "$INADYN_COMMIT"
set_completion_param "inadyn commit" "$INADYN_COMMIT"
./autogen.sh
echo "************ 8"
if ! ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-openssl; then
exit 74890
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment