Skip to content

Commit e33cc3e

Browse files
committed
add custom start script for base flavour
this makes sure that pkg is initialized and python2 is installed
1 parent 4f2bbb2 commit e33cc3e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
pkg update
3+
pkg upgrade
4+
pkg install python2
5+

bsdploy/roles/jails_host/tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@
147147
copy: src=base_flavour_sshd_config dest=/usr/jails/flavours/bsdploy_base/etc/ssh/sshd_config owner=root group=wheel
148148
- name: motd for bsdploy_base flavour
149149
copy: src=base_flavour_motd dest=/usr/jails/flavours/bsdploy_base/etc/motd owner=root group=wheel
150+
- name: startup script for bsdploy_base flavour
151+
copy: src=base_flavour_startup dest=/usr/jails/flavours/bsdploy_base/ezjail.flavour mode="666" owner=root group=wheel
150152
- name: copy some settings from host to bsdploy_base flavour
151153
shell: cmp -s {{ item.src }} {{ item.dest }} || cp -v {{ item.src }} {{ item.dest }}
152154
register: _cp_settings_result

0 commit comments

Comments
 (0)