Install external packages

pull/1/head
Nicolas Arenas 2024-11-11 11:17:36 +01:00
parent c93e649309
commit 69509d6fa1
1 changed files with 13 additions and 2 deletions

View File

@ -25,9 +25,17 @@ check_root() {
fi
}
install_uftp() {
apt install uftp -y
}
install_updcast () {
apt install $DOWNLOAD_DIR/packets/udpcast_20230924_amd64.deb
}
add_user_ogrepository() {
useradd -r -s /bin/bash ogrepository
echo 'ogrepository ALL=(ALL) NOPASSWD: /usr/bin/python3' > ogrepository
useradd -r -s /bin/bash ogrepository
echo 'ogrepository ALL=(ALL) NOPASSWD: ALL' > ogrepository
}
create_directories() {
@ -65,6 +73,9 @@ install_files() {
## Main program
check_root
install_dependencies
install_external_packages
install_uftp
install_updcast
add_user_ogrepository
clone_repository "$GIT_BRANCH"
create_directories