Skip to content

Commit

Permalink
Update mariadb template
Browse files Browse the repository at this point in the history
  • Loading branch information
ngardiner committed Jun 11, 2023
1 parent 38a3806 commit 44da4d3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion mariadb/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ config
info
logfile
rootfs
*.tar.gz
ubuntu-22.04-mariadb_22.04-1_amd64.tar.gz
2 changes: 0 additions & 2 deletions mariadb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ bootstrap:

# Create common database schemas
install -m 0600 zm_create.sql ${BASEDIR}/tmp/zm_create.sql
dab exec mysql < /tmp/zm_create.sql
dab exec rm /tmp/*.sql

# Enable run-once script
install -m 0700 runonce.sh ${BASEDIR}/etc/init.d/firstboot
Expand Down
4 changes: 4 additions & 0 deletions mariadb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ To create the template archive:
To clean and return the template directory to original state

```make clean```

detecting final appliance size: 1242 MB
detecting final commpressed appliance size: 227 MB

12 changes: 6 additions & 6 deletions mariadb/dab.conf
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Suite: xenial
Suite: jammy
CacheDir: ../cache
Source: http://archive.ubuntu.com/ubuntu SUITE main restricted universe multiverse
Source: http://archive.ubuntu.com/ubuntu SUITE-updates main restricted universe multiverse
Source: http://archive.ubuntu.com/ubuntu SUITE-security main restricted universe multiverse
Source: http://archive.ubuntu.com/ubuntu SUITE main restricted universe multiverse
Source: http://archive.ubuntu.com/ubuntu SUITE-updates main restricted universe multiverse
Source: http://archive.ubuntu.com/ubuntu SUITE-security main restricted universe multiverse
Architecture: amd64
Name: mariadb
Version: 16.04-1
Version: 22.04-1
Section: system
Maintainer: Nathan Gardiner <[email protected]>
Infopage: https://www.mysql.com
Description: MariaDB
MariaDB is
MariaDB is a relational database platform
2 changes: 2 additions & 0 deletions mariadb/runonce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ case "$1" in
start)

# Put first boot routines here
mysql -e 'source /tmp/zm_create.sql'
rm /tmp/*.sql

rm $0
;;
Expand Down

0 comments on commit 44da4d3

Please sign in to comment.