Arg. Now it appears I've really ruined things. I tried running an update using;
./scripts/update
and stopped when it was trying to re-install postfix for some reason. Now postfix doesn't run, and trying to run the update again only updates the ClamAV definitions. Trying to run;
/var/mailserv/install/install.sh
--devel 5.3
Now for some reason results in this;
# /var/mailserv/install/install.sh --devel 5.3
set -e
+ set -e
if [[ `uname -s` != "OpenBSD" ]]; then
echo "This only works on OpenBSD!"
exit 1
fi
+ uname -s
export MAILSERV_DEVEL=1
+ export MAILSERV_DEVEL=1
# git checkout branch for supported OpenBSD version or development branch
# can also specify '--devel <branchname>' to use a specific named branch
if [ "`echo $1`" == "--devel" ]; then
if [ "`echo $2`" != "" ]; then
checkout_switch=$2
else
checkout_switch="devel"
fi
# detect changes in devel branch
branch_changes=`git --git-dir=/var/mailserv/.git --work-tree=/var/mailserv status -s`
# Set an env var so scripts can know we're in devel mode
export MAILSERV_DEVEL=1
elif [ "`echo $1`" == "--help" ]; then
echo "Usage: install.sh [OPTION]"
echo " "
echo " Without option it installs a stable Mailserv if compatible with your OBSD version."
echo " --devel use only in case you want to try to intall on unsupported OBSD version"
echo " or "
echo " --devel <another_devel_branch_name> "
echo " --help show this info"
echo " "
exit 1
else
checkout_switch=`uname -r`
fi
+ echo --devel
+ [ --devel == --devel ]
+ echo 5.3
+ [ 5.3 != ]
+ checkout_switch=5.3
+ git --git-dir=/var/mailserv/.git --work-tree=/var/mailserv status -s
+ branch_changes=?? ../account/public/blank.html
?? ../awstats/awstats012014.fuzzygum.electricart.com.au.txt
?? ../git.core
+ export MAILSERV_DEVEL=1
if [ ! -z "$branch_changes" ]; then
echo " "
echo "Code has been changed manually in Devel branch, system will not replace it from git hub."
echo "Please add file(s) and commit changes"
echo " cd /var/mailserv "
echo " git add <filename>"
echo " git commit -a"
echo " "
echo "This file(s) has been changed or added:"
echo " $branch_changes "
echo " "
exit 1
else
# switch to branch
git --git-dir=/var/mailserv/.git --work-tree=/var/mailserv checkout $checkout_switch 2>/dev/null
if [[ `echo $?` -ne 0 ]]; then # and if that fails
echo "Mailserv is not yet supported on OpenBSD `uname -r`, please use a supported version of OpenBSD or --devel parameter"
exit 1
fi
fi
+ [ ! -z ?? ../account/public/blank.html
?? ../awstats/awstats012014.fuzzygum.electricart.com.au.txt
?? ../git.core ]
+ echo
+ echo Code has been changed manually in Devel branch, system will not replace it from git hub.
Code has been changed manually in Devel branch, system will not replace it from git hub.
+ echo Please add file(s) and commit changes
Please add file(s) and commit changes
+ echo cd /var/mailserv
cd /var/mailserv
+ echo git add <filename>
git add <filename>
+ echo git commit -a
git commit -a
+ echo
+ echo This file(s) has been changed or added:
This file(s) has been changed or added:
+ echo ?? ../account/public/blank.html
?? ../awstats/awstats012014.fuzzygum.electricart.com.au.txt
?? ../git.core
?? ../account/public/blank.html
?? ../awstats/awstats012014.fuzzygum.electricart.com.au.txt
?? ../git.core
+ echo
+ exit 1
root@fuzzygum:/var/mailserv/install # /var/mailserv/install/sh install.sh --devel 5.3
ksh: /var/mailserv/install/sh: not found
root@fuzzygum:/var/mailserv/install # sh /var/mailserv/install/install.sh --devel 5.3
set -e
+ set -e
if [[ `uname -s` != "OpenBSD" ]]; then
echo "This only works on OpenBSD!"
exit 1
fi
+ uname -s
export MAILSERV_DEVEL=1
+ export MAILSERV_DEVEL=1
# git checkout branch for supported OpenBSD version or development branch
# can also specify '--devel <branchname>' to use a specific named branch
if [ "`echo $1`" == "--devel" ]; then
if [ "`echo $2`" != "" ]; then
checkout_switch=$2
else
checkout_switch="devel"
fi
# detect changes in devel branch
branch_changes=`git --git-dir=/var/mailserv/.git --work-tree=/var/mailserv status -s`
# Set an env var so scripts can know we're in devel mode
export MAILSERV_DEVEL=1
elif [ "`echo $1`" == "--help" ]; then
echo "Usage: install.sh [OPTION]"
echo " "
echo " Without option it installs a stable Mailserv if compatible with your OBSD version."
echo " --devel use only in case you want to try to intall on unsupported OBSD version"
echo " or "
echo " --devel <another_devel_branch_name> "
echo " --help show this info"
echo " "
exit 1
else
checkout_switch=`uname -r`
fi
+ echo --devel
+ [ --devel == --devel ]
+ echo 5.3
+ [ 5.3 != ]
+ checkout_switch=5.3
+ git --git-dir=/var/mailserv/.git --work-tree=/var/mailserv status -s
+ branch_changes=?? ../account/public/blank.html
?? ../awstats/awstats012014.fuzzygum.electricart.com.au.txt
?? ../git.core
+ export MAILSERV_DEVEL=1
if [ ! -z "$branch_changes" ]; then
echo " "
echo "Code has been changed manually in Devel branch, system will not replace it from git hub."
echo "Please add file(s) and commit changes"
echo " cd /var/mailserv "
echo " git add <filename>"
echo " git commit -a"
echo " "
echo "This file(s) has been changed or added:"
echo " $branch_changes "
echo " "
exit 1
else
# switch to branch
git --git-dir=/var/mailserv/.git --work-tree=/var/mailserv checkout $checkout_switch 2>/dev/null
if [[ `echo $?` -ne 0 ]]; then # and if that fails
echo "Mailserv is not yet supported on OpenBSD `uname -r`, please use a supported version of OpenBSD or --devel parameter"
exit 1
fi
fi
+ [ ! -z ?? ../account/public/blank.html
?? ../awstats/awstats012014.fuzzygum.electricart.com.au.txt
?? ../git.core ]
+ echo
+ echo Code has been changed manually in Devel branch, system will not replace it from git hub.
Code has been changed manually in Devel branch, system will not replace it from git hub.
+ echo Please add file(s) and commit changes
Please add file(s) and commit changes
+ echo cd /var/mailserv
cd /var/mailserv
+ echo git add <filename>
git add <filename>
+ echo git commit -a
git commit -a
+ echo
+ echo This file(s) has been changed or added:
This file(s) has been changed or added:
+ echo ?? ../account/public/blank.html
?? ../awstats/awstats012014.fuzzygum.electricart.com.au.txt
?? ../git.core
?? ../account/public/blank.html
?? ../awstats/awstats012014.fuzzygum.electricart.com.au.txt
?? ../git.core
+ echo
+ exit 1
Any help with this would be very much appreciated. I'm really stuck now!
kind regards,
Tristan.