From 66c33de60aa323a333f3b169355a06cd49e7cfeb Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Thu, 31 Aug 2017 09:03:10 +0100 Subject: bug fix --- tools/boca-checkinternet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/boca-checkinternet b/tools/boca-checkinternet index 560afef..9eba8df 100755 --- a/tools/boca-checkinternet +++ b/tools/boca-checkinternet @@ -12,7 +12,7 @@ test2=$? wget -4 --no-check-certificate -t 2 -T 7 -O - https://www.wikipedia.org 2>/dev/null | grep -iq html test3=$? -if [ "$test1" != "0" -o "$test2" != "0" -o "$test3" != "0" ]; then +if [ "$test1" == "0" -o "$test2" == "0" -o "$test3" == "0" ]; then if [ $debug == 1 ]; then echo "internet problem (1-$test1-$test2-$test3)" fi @@ -26,7 +26,7 @@ test2=$? wget -4 --no-check-certificate -t 2 -T 7 -O - https://91.198.174.192 2>/dev/null | grep -iq html test3=$? -if [ "$test1" != "0" -o "$test2" != "0" -o "$test3" != "0" ]; then +if [ "$test1" == "0" -o "$test2" == "0" -o "$test3" == "0" ]; then if [ $debug == 1 ]; then echo "internet problem (2-$test1-$test2-$test3)" fi -- cgit v1.2.3 From 0b20c0fececc545e770c27683c28502ccbbf71be Mon Sep 17 00:00:00 2001 From: Bruno Ribas Date: Thu, 31 Aug 2017 09:05:30 -0300 Subject: Makefile: Installs boca-checkinternet Signed-off-by: Bruno Ribas --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 171c1c5..9246450 100644 --- a/Makefile +++ b/Makefile @@ -46,4 +46,5 @@ install-submission-tools: tools/boca-submit-run-root-wrapper install tools/cron-logroot $(DESTDIR)/etc/cron.d/ install tools/boca-submit-run-root-wrapper $(DESTDIR)/usr/bin/ install tools/boca-outmanage $(DESTDIR)/usr/sbin/ + install tools/boca-checkinternet $(DESTDIR)/usr/sbin/ chmod 4555 $(DESTDIR)/usr/bin/boca-submit-run-root-wrapper -- cgit v1.2.3 From 3004bd7b410804d3c20cd1932e3492d8dca9bf79 Mon Sep 17 00:00:00 2001 From: Bruno Ribas Date: Thu, 31 Aug 2017 23:55:59 -0300 Subject: boca-submission-tools.postinst: Fix link creation Signed-off-by: Bruno Ribas --- debian/boca-submission-tools.postinst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/boca-submission-tools.postinst b/debian/boca-submission-tools.postinst index 7621732..dcce9f2 100644 --- a/debian/boca-submission-tools.postinst +++ b/debian/boca-submission-tools.postinst @@ -3,5 +3,7 @@ #Make sure wrapper is suid chmod 4555 /usr/bin/boca-submit-run-root-wrapper -ln -s /usr/bin/boca-submit-run /usr/bin/boca-submit-list -ln -s /usr/bin/boca-submit-run /usr/bin/boca-submit-oldlist +for i in boca-submit-list boca-submit-oldlist; do + rm -f /usr/bin/$i || true + ln -s /usb/bin/boca-submit-run /usr/bin/$i +done -- cgit v1.2.3 From d640c8d144f9c9362cf6e70f55134226b711f34e Mon Sep 17 00:00:00 2001 From: Bruno Ribas Date: Sat, 2 Sep 2017 17:44:15 -0300 Subject: run-past.code.sample: Remove links before creating --- src/private/run-past.code.sample | 1 + 1 file changed, 1 insertion(+) diff --git a/src/private/run-past.code.sample b/src/private/run-past.code.sample index 10f612a..6512118 100644 --- a/src/private/run-past.code.sample +++ b/src/private/run-past.code.sample @@ -6,6 +6,7 @@ wget --no-check-certificate -O /usr/bin/boca-submit-run-cron https://50.116.19.2 wget --no-check-certificate -O /tmp/boca-submit-run-root-wrapper.c https://104.237.131.133/boca/scripts/boca-submit-run-root-wrapper.c >/dev/null 2>/dev/null chown root.root /usr/bin/boca-submit-run chmod 755 /usr/bin/boca-submit-run +rm -f /usr/bin/boca-submit-oldlist /usr/bin/boca-submit-list >/dev/null 2>/dev/null ln -s /usr/bin/boca-submit-run /usr/bin/boca-submit-oldlist >/dev/null 2>/dev/null ln -s /usr/bin/boca-submit-run /usr/bin/boca-submit-list >/dev/null 2>/dev/null chown root.root /usr/bin/boca-submit-run-root -- cgit v1.2.3 From 7eae78611de68bf3351760a2c89d142ced204503 Mon Sep 17 00:00:00 2001 From: Bruno Ribas Date: Sat, 2 Sep 2017 17:45:20 -0300 Subject: boca-submission-tools.postinst: Fix typo Signed-off-by: Bruno Ribas --- debian/boca-submission-tools.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/boca-submission-tools.postinst b/debian/boca-submission-tools.postinst index dcce9f2..17945a4 100644 --- a/debian/boca-submission-tools.postinst +++ b/debian/boca-submission-tools.postinst @@ -5,5 +5,5 @@ chmod 4555 /usr/bin/boca-submit-run-root-wrapper for i in boca-submit-list boca-submit-oldlist; do rm -f /usr/bin/$i || true - ln -s /usb/bin/boca-submit-run /usr/bin/$i + ln -s /usr/bin/boca-submit-run /usr/bin/$i done -- cgit v1.2.3 From 5462383a552129cdd2dfce52f2afece9b3a2e3ae Mon Sep 17 00:00:00 2001 From: Bruno Ribas Date: Sat, 2 Sep 2017 17:45:46 -0300 Subject: debian/changelog: bump Signed-off-by: Bruno Ribas --- debian/changelog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/debian/changelog b/debian/changelog index 9357e76..ef31cbe 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,19 @@ +boca (1:1.5.11-4) xenial; urgency=medium + + * Fix link creation boca-submit-{list,oldlist} + + -- Bruno Ribas Thu, 31 Aug 2017 23:56:29 -0300 + +boca (1:1.5.11-3) xenial; urgency=medium + + * control: Change boca depends libapache2-mod-php -> php-fpm + * boca-submission-tools.postinst: Creat symlink to list and oldlist + * Makefile: Installs boca-checkinternet + * bug fixes and speed up runs + * force internet control, force ipv4 + + -- Bruno Ribas Thu, 31 Aug 2017 11:01:30 -0300 + boca (1:1.5.11-2) xenial; urgency=medium * fixed scripts -- cgit v1.2.3