Skip to content

Commit 197f28b

Browse files
authored
Merge pull request #1148 from n-kawauchi/updated_install_scripts
一括インストールスクリプトのOS判定修正
2 parents f1a5f89 + 3c964aa commit 197f28b

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

scripts/openrtm2_install_raspbian.sh

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Nobu Kawauchi
77
#
88

9-
VERSION=2.0.2.00
9+
VERSION=2.0.2.01
1010
FILENAME=openrtm2_install_raspbian.sh
1111
BIT=`getconf LONG_BIT`
1212

@@ -73,7 +73,6 @@ cmake_tools="cmake doxygen graphviz nkf"
7373
build_tools="subversion git"
7474
deb_pkg="uuid-dev libboost-filesystem-dev"
7575
pkg_tools="build-essential debhelper devscripts"
76-
#fluentbit="td-agent-bit"
7776
omni_devel="libomniorb4-dev omniidl"
7877
omni_runtime="omniorb-nameserver"
7978
openrtm2_devel="openrtm2-doc openrtm2-idl openrtm2-dev"
@@ -300,11 +299,13 @@ check_codename () {
300299
for c in $cnames; do
301300
if test -f "/etc/apt/sources.list"; then
302301
res=`grep $c /etc/apt/sources.list`
302+
res2=`grep -r $c /etc/apt/sources.list.d`
303303
else
304304
echo $msg1
305305
exit
306306
fi
307-
if test ! "x$res" = "x" ; then
307+
if test ! "x$res" = "x" ||
308+
test ! "x$res2" = "x" ; then
308309
code_name=$c
309310
fi
310311
done
@@ -346,7 +347,6 @@ check_reposerver()
346347
#---------------------------------------
347348
create_srclist () {
348349
openrtm_repo="deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/openrtm.key] http://$reposerver/pub/Linux/raspbian/ $code_name main"
349-
#fluent_repo="deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/fluentbit-keyring.gpg] https://packages.fluentbit.io/raspbian/$code_name $code_name main"
350350
}
351351

352352
#---------------------------------------
@@ -804,11 +804,6 @@ if test "x$OPT_FLG" = "xtrue" &&
804804
sudo update-alternatives --set java ${JAVA8}
805805
fi
806806

807-
#if test "x$OPT_CORE" = "xtrue" ; then
808-
# sudo systemctl enable td-agent-bit
809-
# sudo systemctl start td-agent-bit
810-
#fi
811-
812807
install_result $install_pkgs
813808
uninstall_result $uninstall_pkgs
814809
if test ! "x$err_message" = "x" ; then

scripts/openrtm2_install_ubuntu.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# = OPT_UNINST : uninstallation
1515
#
1616

17-
VERSION=2.0.2.00
17+
VERSION=2.0.2.01
1818
FILENAME=openrtm2_install_ubuntu.sh
1919

2020
#
@@ -92,7 +92,7 @@ cmake_tools="cmake doxygen graphviz nkf"
9292
build_tools="subversion git"
9393
deb_pkg="uuid-dev libboost-filesystem-dev"
9494
pkg_tools="build-essential debhelper devscripts"
95-
fluentbit="td-agent-bit"
95+
fluentbit="fluent-bit"
9696
omni_devel="libomniorb4-dev omniidl"
9797
omni_runtime="omniorb-nameserver"
9898
openrtm2_devel="openrtm2-doc openrtm2-idl openrtm2-dev"
@@ -402,11 +402,13 @@ create_srclist () {
402402
for c in $cnames; do
403403
if test -f "/etc/apt/sources.list"; then
404404
res=`grep $c /etc/apt/sources.list`
405+
res2=`grep -r $c /etc/apt/sources.list.d`
405406
else
406407
echo $msg1
407408
exit
408409
fi
409-
if test ! "x$res" = "x" ; then
410+
if test ! "x$res" = "x" ||
411+
test ! "x$res2" = "x" ; then
410412
code_name=$c
411413
fi
412414
done
@@ -910,8 +912,8 @@ if test "x$OPT_UNINST" = "xtrue" ; then
910912
fi
911913

912914
if test "x$OPT_COREDEVEL" = "xtrue" ; then
913-
sudo systemctl enable td-agent-bit
914-
sudo systemctl start td-agent-bit
915+
sudo systemctl enable fluent-bit
916+
sudo systemctl start fluent-bit
915917
fi
916918

917919
install_result $install_pkgs

0 commit comments

Comments
 (0)