Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一括インストールスクリプトのOS判定修正 #1148

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions scripts/openrtm2_install_raspbian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Nobu Kawauchi
#

VERSION=2.0.2.00
VERSION=2.0.2.01
FILENAME=openrtm2_install_raspbian.sh
BIT=`getconf LONG_BIT`

Expand Down Expand Up @@ -73,7 +73,6 @@ cmake_tools="cmake doxygen graphviz nkf"
build_tools="subversion git"
deb_pkg="uuid-dev libboost-filesystem-dev"
pkg_tools="build-essential debhelper devscripts"
#fluentbit="td-agent-bit"
omni_devel="libomniorb4-dev omniidl"
omni_runtime="omniorb-nameserver"
openrtm2_devel="openrtm2-doc openrtm2-idl openrtm2-dev"
Expand Down Expand Up @@ -300,11 +299,13 @@ check_codename () {
for c in $cnames; do
if test -f "/etc/apt/sources.list"; then
res=`grep $c /etc/apt/sources.list`
res2=`grep -r $c /etc/apt/sources.list.d`
else
echo $msg1
exit
fi
if test ! "x$res" = "x" ; then
if test ! "x$res" = "x" ||
test ! "x$res2" = "x" ; then
code_name=$c
fi
done
Expand Down Expand Up @@ -346,7 +347,6 @@ check_reposerver()
#---------------------------------------
create_srclist () {
openrtm_repo="deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/openrtm.key] http://$reposerver/pub/Linux/raspbian/ $code_name main"
#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"
}

#---------------------------------------
Expand Down Expand Up @@ -804,11 +804,6 @@ if test "x$OPT_FLG" = "xtrue" &&
sudo update-alternatives --set java ${JAVA8}
fi

#if test "x$OPT_CORE" = "xtrue" ; then
# sudo systemctl enable td-agent-bit
# sudo systemctl start td-agent-bit
#fi

install_result $install_pkgs
uninstall_result $uninstall_pkgs
if test ! "x$err_message" = "x" ; then
Expand Down
12 changes: 7 additions & 5 deletions scripts/openrtm2_install_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# = OPT_UNINST : uninstallation
#

VERSION=2.0.2.00
VERSION=2.0.2.01
FILENAME=openrtm2_install_ubuntu.sh

#
Expand Down Expand Up @@ -92,7 +92,7 @@ cmake_tools="cmake doxygen graphviz nkf"
build_tools="subversion git"
deb_pkg="uuid-dev libboost-filesystem-dev"
pkg_tools="build-essential debhelper devscripts"
fluentbit="td-agent-bit"
fluentbit="fluent-bit"
omni_devel="libomniorb4-dev omniidl"
omni_runtime="omniorb-nameserver"
openrtm2_devel="openrtm2-doc openrtm2-idl openrtm2-dev"
Expand Down Expand Up @@ -402,11 +402,13 @@ create_srclist () {
for c in $cnames; do
if test -f "/etc/apt/sources.list"; then
res=`grep $c /etc/apt/sources.list`
res2=`grep -r $c /etc/apt/sources.list.d`
else
echo $msg1
exit
fi
if test ! "x$res" = "x" ; then
if test ! "x$res" = "x" ||
test ! "x$res2" = "x" ; then
code_name=$c
fi
done
Expand Down Expand Up @@ -910,8 +912,8 @@ if test "x$OPT_UNINST" = "xtrue" ; then
fi

if test "x$OPT_COREDEVEL" = "xtrue" ; then
sudo systemctl enable td-agent-bit
sudo systemctl start td-agent-bit
sudo systemctl enable fluent-bit
sudo systemctl start fluent-bit
fi

install_result $install_pkgs
Expand Down