Search Results

Search: Posts Made By: macrossm
3,232
Posted By Scrutinizer
In addition you could leave out the sed and use: ...
In addition you could leave out the sed and use:

cat << EOF | ...
<VirtualHost *:80>

ServerName dev.${sitename}

DocumentRoot /var/www/html/www.${sitename}/

...
3,232
Posted By Don Cragun
Have you tried: sitename=$1 prodserver=$2 ...
Have you tried:
sitename=$1
prodserver=$2
sed "s/changeme/$sitename/g" << EOF | ssh $prodserver "cat > /data/$sitename.conf"
<VirtualHost *:80>

ServerName dev.changeme

...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 07:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy