owner "root"
group "root"
mode 0o600
- variables :database_password => database_password
+ variables :passwords => passwords
end
template "/etc/cron.daily/osmf-donate-backup" do
owner "root"
group "root"
mode 0o750
- variables :database_password => database_password
+ variables :passwords => passwords
end
<?php
-$_DB_H = mysql_connect('localhost','donate','<%= @database_password %>');
+$_DB_H = mysql_connect('localhost','donate','<%= @passwords['database'] %>');
mysql_select_db('donate', $_DB_H);
mysql_query('SET NAMES \'utf8\'', $_DB_H);