Files
racalmas/tools/audio-upload-hooks/set-size.sh
Milan 2db84415bb config: add audio-upload-hooks
Hooks can be used to automate the process of updating database columns
when new audio files are uploaded.  A hook command reads the path of an
audio file and output a list of database columns to be updated with
their respective values.  Currently, the only supported database tables
are calcms_events and calcms_audio_recordings.  Some examples are
included
2023-03-24 23:01:05 +01:00

3 lines
70 B
Bash
Executable File

#!/bin/sh
echo "calcms_audio_recordings.size = $(du -b $1 | cut -f1)"