Commits

Alan Stevens  committed 46f9ad2

attempted fix for permissions writing to /etc/init

  • Participants
  • Parent commits 6425e26

Comments (0)

Files changed (1)

File generate_vhost

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