mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-30 03:53:18 -04:00
added s6v2 files
This commit is contained in:
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
apt-get update
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
!/usr/bin/with-contenv bash
|
||||
|
||||
|
||||
if ! dpkg -l | grep gnupg > /dev/null; then
|
||||
apt-get update && apt-get install -y gnupg
|
||||
fi
|
||||
|
||||
if [ ! -f "/etc/apt/sources.list.d/ros2.list" ]; then
|
||||
echo "**** Adding ROS2 packages to install list ****"
|
||||
curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
|
||||
|
||||
echo "ros-humble-ros-base ros-dev-tools" >> /mod-repo-packages-to-install.list
|
||||
|
||||
echo "**** Automatically sourcing ROS2 ****"
|
||||
printf "\n# Automatically source ROS2 humble\nsource /opt/ros/humble/setup.bash" >> /etc/bash.bashrc
|
||||
else
|
||||
echo "**** ROS2 packages already installed, skipping ****"
|
||||
fi
|
||||
Reference in New Issue
Block a user