Commits

Alan Stevens  committed de9fd29

more likely fix for permissions when writing upstart config

  • Participants
  • Parent commits 46f9ad2

Comments (0)

Files changed (1)

File generate_vhost

 
 unicorn_bin=`which unicorn`
 
-unicorn_init=<<File
+(
+cat <<File
 description "$domain_name rails application"
 
 start on runlevel [2]
 
 respawn
 File
-
-echo "$unicorn_init"|sudo tee /etc/init/$domain_name.conf
+)|sudo tee /etc/init/$domain_name.conf
 
 echo "Skeleton copied to \"$vhost_path\""