Skip to content

Commit 0ae02d4

Browse files
committed
creqte sqlite database file if does not exists yet
1 parent fce4558 commit 0ae02d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

debian/cnb-cache-sqlite.postinst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ configure)
3535
cat /etc/cnb-cache/cnb-cache.env
3636
echo "############################"
3737

38+
if [ ! -f /var/lib/dbconfig-common/sqlite3/cnb-cache/cnb-cache ]; then
39+
install -o cnb-cache -g cnb-cache -m 0644 /dev/null /var/lib/dbconfig-common/sqlite3/cnb-cache/cnb-cache
40+
fi
41+
42+
3843
phinx migrate -c /usr/lib/cnb-cache/phinx-adapter.php
3944

4045
if [ -f /var/lib/cnb-cache/cnb-cache ]; then

0 commit comments

Comments
 (0)