Writing /home/k4ml/webapps/drupal5/wiki/data/cache/6/62a2f68f2a0ce452970bcc43d4ae705c.i failed
Writing /home/k4ml/webapps/drupal5/wiki/data/cache/6/62a2f68f2a0ce452970bcc43d4ae705c.i failed
Writing /home/k4ml/webapps/drupal5/wiki/data/cache/6/62a2f68f2a0ce452970bcc43d4ae705c.xhtml failed

Bash script

  1. generate sql statement
#!/bin/bash
 
PATCH_NAME=$1
PATCH_DESC=$2
PATCH_DEP="schema"
 
(
cat <<EOF
 
-- this is a generated template patch file.
-- overwrite depends_on value if any
 
begin;
 
insert into patches (patch_name, description, depends_on)
    values (
        '$PATCH_NAME',
        '$PATCH_DESC',
        '$PATCH_DEP'
    );
 
rollback;
EOF
) > $PATCH_NAME