Commit 572a1857 authored by Zach van Rijn's avatar Zach van Rijn
Browse files

Fix permissions.

parent d20fc37c
#!/bin/sh -e
DESTFILE=/var/www/site/new/mirrors.html;
#---------------------------------------------------------------
##
......@@ -21,7 +23,7 @@ T0_BODY=$(cat <<'EOF'
<th scope="col" class="text-right">Speed</th>
<th scope="col" class="text-right">Freshness</th>
<th scope="col" class="text-right">Uptime</th>
<th scope="col">Sponsor</th>
<th scope="col" class="text-right">Sponsor</th>
<th scope="col">Protocol</th>
</tr>
</thead>
......@@ -82,7 +84,7 @@ ROW_DATA=$(cat <<'EOF'
<td class="text-right">__SPEED__</td>
<td class="text-right">__FRESH__</td>
<td class="text-right">__UPTIME__</td>
<td>__SPONSOR__</td>
<td class="text-right">__SPONSOR__</td>
<td>
<strong>
<a href="__HTTP__">http</a>
......@@ -191,4 +193,6 @@ printf >> ${TEMPFILE} "</tbody>\n";
#---------------------------------------------------------------
mv ${TEMPFILE} /var/www/site/mirrors.html;
mv ${TEMPFILE} ${DESTFILE};
chown z:z ${DESTFILE};
chmod 644 ${DESTFILE};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment