Commits

Alan Stevens committed 46f9ad2

attempted fix for permissions writing to /etc/init

Comments (0)

Files changed (1)

 
 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\""