adds module for automatic deb package install
This commit is contained in:
parent
5d513b5434
commit
c42e88c537
3 changed files with 25 additions and 0 deletions
16
includes.container/deb-pkgs/install-debs.sh
Normal file
16
includes.container/deb-pkgs/install-debs.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
for file in /deb-pkgs/*; do
|
||||||
|
if [ ! -f "$file" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
extension=${file##*.}
|
||||||
|
if [ $extension != "deb" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "installing $file"
|
||||||
|
|
||||||
|
apt-get install -y $file
|
||||||
|
done
|
||||||
4
modules/50-install-debs.yml
Normal file
4
modules/50-install-debs.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
name: install-debs
|
||||||
|
type: shell
|
||||||
|
commands:
|
||||||
|
- bash /deb-pkgs/install-debs.sh
|
||||||
|
|
@ -26,6 +26,11 @@ modules:
|
||||||
commands:
|
commands:
|
||||||
- echo Example output
|
- echo Example output
|
||||||
|
|
||||||
|
- name: package-modules
|
||||||
|
type: includes
|
||||||
|
includes:
|
||||||
|
- modules/50-install-debs
|
||||||
|
|
||||||
# Put your custom actions before this comment
|
# Put your custom actions before this comment
|
||||||
|
|
||||||
- name: cleanup
|
- name: cleanup
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue