Changes between Version 11 and Version 12 of InstallationGuidelines/Linux/Server/ApacheMySQL


Ignore:
Timestamp:
10/26/11 20:26:26 (13 years ago)
Author:
Fran Boon
Comment:

Escape the $ in the created backup shell script

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/Linux/Server/ApacheMySQL

    v11 v12  
    125125cat << EOF > "/usr/local/bin/backup"
    126126#!/bin/sh
    127 NOW=$(date +"%Y-%m-%d")
    128 mysqldump sahana > /root/backup-$NOW.sql
    129 OLD=$(date --date='7 day ago' +"%Y-%m-%d")
    130 rm -f /root/backup-$OLD.sql
     127NOW=\$(date +"%Y-%m-%d")
     128mysqldump sahana > /root/backup-\$NOW.sql
     129OLD=\$(date --date='7 day ago' +"%Y-%m-%d")
     130rm -f /root/backup-\$OLD.sql
    131131EOF
    132132chmod +x /usr/local/bin/backup