1
vote
3answers
323 views

How to start Rails from a shell script on Debian?

I don't really have any need to mess with passenger or capistrano at the moment. I simply want to run rails on boot on port 3000. I've attempted to replicate this tutorial for node as much as I could ...
1
vote
1answer
53 views

Cronjobs putting archive in wrong directory

I am running a website on an Amazon ec2 instance running the default Debian linux. I set up a cronjob to copy the site files, take a database imprint, and zip them up. I want to keep the file ...
1
vote
1answer
2k views

How do you set a locale non-interactively on Debian/Ubuntu?

Usually, I run aptitude -y install locales then dpkg-reconfigure locales to set up locale. Now I want to put it into a shell script, how can I reliably do the following, automatically / ...
1
vote
2answers
2k views

Linux FTP upload: “No such file or directory”, but file exists

I want to upload backup archives from one server to another server using ftp. In my backup cronjob I use this script to upload files: MEDIAFILE=/var/somedir/somefile.encrypted if [ -r $MEDIAFILE ] # ...
2
votes
2answers
2k views

What is wrong? “Syntax error: unexpected end of file”

I keep getting this error, do you guys know what is wrong? rapache is an alias for restart apache mugbear:/usr/bin# cat /usr/bin/mkdomain if [ -d ...