This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Install Postgres 9.2 on a clean Ubuntu 12.04 | |
""" | |
LC_ALL issue | |
comment out the AcceptEnv LANG LC_* line in the remote /etc/ssh/sshd_config file. | |
sudo apt-get install language-pack-en-base | |
sudo dpkg-reconfigure locales | |
comment out the SendEnv LANG LC_* line in the local /etc/ssh/ssh_config file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config/schedule.rb:5:in `block in initialize': undefined method `sudo' for #<Whe | |
never::JobList:0x00000001be50b8> (NoMethodError) | |
from /var/lib/gems/1.9.1/gems/whenever-0.8.4/lib/whenever/job_list.rb:44 | |
:in `every' | |
from config/schedule.rb:3:in `initialize' | |
from /var/lib/gems/1.9.1/gems/whenever-0.8.4/lib/whenever/job_list.rb:25 | |
:in `instance_eval' | |
from /var/lib/gems/1.9.1/gems/whenever-0.8.4/lib/whenever/job_list.rb:25 | |
:in `initialize' | |
from /var/lib/gems/1.9.1/gems/whenever-0.8.4/lib/whenever.rb:15:in `new' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
every 1.day, :at => '4:30 am' do | |
sudo "alfi123%" | |
command "sudo backup perform -t my_backup" | |
end |