Plume/snap/hooks/post-refresh

12 lines
162 B
Bash

#!/bin/sh
db_type=$(snapctl get db.type)
if [ -z "${db_type}" ]
then
exit 0
fi
cd ${SNAP}
exec ./set-environment bin/plm migration run --path ${SNAP_DATA}