Bläddra i källkod

Update go-18.sh

Andrea Pollastri 6 år sedan
förälder
incheckning
8e1fef077e
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      go-18.sh

+ 2 - 2
go-18.sh

@@ -24,7 +24,7 @@ wget https://raw.githubusercontent.com/andreapollastri/cipi/master/alias-del.sh
 wget https://raw.githubusercontent.com/andreapollastri/cipi/master/linux.png -O /cipi/html/linux.png
 wget https://raw.githubusercontent.com/andreapollastri/cipi/master/linux.png -O /cipi/html/linux.png
 DBRFILE=/cipi/DBR
 DBRFILE=/cipi/DBR
 sudo touch $DBRFILE
 sudo touch $DBRFILE
-cat > "$DBRFILE" <<EOF
+sudo cat > "$DBRFILE" <<EOF
 $DBPASS
 $DBPASS
 EOF
 EOF
 sudo chmod o-r /cipi
 sudo chmod o-r /cipi
@@ -103,7 +103,7 @@ sudo unlink /etc/apache2/sites-available/000-default.conf
 CONF=/etc/apache2/sites-available/000-default.conf
 CONF=/etc/apache2/sites-available/000-default.conf
 sudo touch $CONF
 sudo touch $CONF
 
 
-cat > "$CONF" <<EOF
+sudo cat > "$CONF" <<EOF
 <VirtualHost *:80>
 <VirtualHost *:80>
         ServerAdmin webmaster@localhost
         ServerAdmin webmaster@localhost
         DocumentRoot /cipi/html
         DocumentRoot /cipi/html