Files
siarp.de/public/comment/14/index.html
T
2019-12-08 16:36:45 +01:00

208 lines
9.3 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" version="XHTML+RDFa 1.0" dir="ltr">
<!-- Mirrored from siarp.de/comment/14 by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 08 Dec 2019 12:05:00 GMT -->
<head profile="http://www.w3.org/1999/xhtml/vocab">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Generator" content="Drupal 7 (http://drupal.org)" />
<title>Mein erstes echtes bash-Skript! | siarp.de</title>
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_xE-rWrJf-fncB6ztZfd2huxqgxu4WO-qwma6Xer30m4.css" media="all" />
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_NdVgz6YKifxQUEsW5xls_zI7Pn2F7E5U5Wb29zcu3vo.css" media="all" />
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_OAqUol8y_hmU_lCucLyaRX-a1G627sWWbvG_VG1GKnE.css" media="all" />
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_xPIRNNJGw8EiKyuE5b-xAtWWTQ8U1_huTr4xL09Dq2A.css" media="all" />
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_k3snrbsthqot7V7ccRZHS9OkCZkwBv4adtNieIVlbEU.css" media="print" />
<!--[if lt IE 7]>
<link type="text/css" rel="stylesheet" href="http://siarp.de/themes/garland/fix-ie.css?q26w7t" media="all" />
<![endif]-->
<script type="text/javascript" src="../../sites/siarp.de/files/js/js_qikmINIYTWe4jcTUn8cKiMr8bmSDiZB9LQqvceZ6wlM.js"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"garland","theme_token":"f1UlSHBitA_6fJjXj23QS2HMWnSvPLQ5asJRKXz3iCM","js":{"misc\/jquery.js":1,"misc\/jquery-extend-3.4.0.js":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1},"css":{"modules\/system\/system.base.css":1,"modules\/system\/system.menus.css":1,"modules\/system\/system.messages.css":1,"modules\/system\/system.theme.css":1,"modules\/comment\/comment.css":1,"modules\/field\/theme\/field.css":1,"modules\/node\/node.css":1,"modules\/user\/user.css":1,"sites\/all\/modules\/views\/css\/views.css":1,"sites\/all\/modules\/ctools\/css\/ctools.css":1,"public:\/\/geshi\/geshifilter-languages.css":1,"sites\/siarp.de\/modules\/geshifilter\/geshifilter.css":1,"themes\/garland\/style.css":1,"themes\/garland\/print.css":1,"themes\/garland\/fix-ie.css":1}}});
//--><!]]>
</script>
</head>
<body class="html not-front not-logged-in one-sidebar sidebar-second page-node page-node- page-node-42 node-type-story fluid-width" >
<div id="skip-link">
<a href="#main-content" class="element-invisible element-focusable">Skip to main content</a>
</div>
<div id="wrapper">
<div id="container" class="clearfix">
<div id="header">
<div id="logo-floater">
<div id="branding"><strong><a href="../../">
<span>siarp.de</span> </a></strong></div>
</div>
</div> <!-- /#header -->
<div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
<h2 class="element-invisible">You are here</h2><div class="breadcrumb"><a href="../../">Home</a></div> <a id="main-content"></a>
<div id="tabs-wrapper" class="clearfix"> <h1 class="with-tabs">Mein erstes echtes bash-Skript!</h1>
</div> <div class="clearfix">
<div class="region region-content">
<div id="block-system-main" class="block block-system clearfix">
<div class="content">
<div id="node-42" class="node node-story node-promoted">
<span class="submitted">4. June 2006 - 13:15 — <span class="username">Tilman</span></span>
<div class="content clearfix">
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><p>...erstellt ein Repository und liegt unter <span style="font-style:italic">/root/tilman/create_repository.sh</span>. Nächstes Ziel: Subversion hook script für automatisiertes Update, damit die Webentwicklung so richtig losgehen kann.<br />
<!--break--><br />
<div class="geshifilter"><div class="text geshifilter-text">#!/bin/sh<br />
<br />
# Erstellt ein Repository unterhalb von /home/svn-repos,<br />
# traegt es in die httpd.conf ein und startet Apache neu<br />
#<br />
# Optionen: -n um den Eintrag in die httpd.conf und den Apache-Neustart<br />
# &nbsp; abzuschalten<br />
# Parameter: Pfad des neuen Repository (unterhalb von /home/svn-repos/)<br />
<br />
if [ $# -eq 2 ]<br />
then<br />
&nbsp; if [ $1 == &quot;-n&quot; ]<br />
&nbsp; then<br />
&nbsp; &nbsp; # Slashes am Anfang und Ende der Pfadangabe entfernen<br />
&nbsp; &nbsp; repos=${2%\/}<br />
&nbsp; &nbsp; repos=${repos#\/}<br />
&nbsp; &nbsp; updateconf=false<br />
&nbsp; else<br />
&nbsp; &nbsp; echo &quot;usage: create_repository [-n] repository_path&quot;<br />
&nbsp; &nbsp; exit 1<br />
&nbsp; fi<br />
else<br />
&nbsp; if [ $# -eq 1 ]<br />
&nbsp; then<br />
&nbsp; &nbsp; # Slashes am Anfang und Ende der Pfadangabe entfernen<br />
&nbsp; &nbsp; repos=${1%\/}<br />
&nbsp; &nbsp; repos=${repos#\/}<br />
&nbsp; &nbsp; updateconf=true<br />
&nbsp; else<br />
&nbsp; &nbsp; echo &quot;usage: create_repository [-n] repository_path&quot;<br />
&nbsp; &nbsp; exit 2<br />
&nbsp; fi<br />
fi<br />
<br />
mkdir /home/svn-repos/$repos<br />
svnadmin create /home/svn-repos/$repos<br />
chown -R svn.svn /home/svn-repos/$repos<br />
chmod -R ug+w /home/svn-repos/$repos<br />
chmod ug+s /home/svn-repos/$repos /home/svn-repos/$repos/*<br />
<br />
# in httpd.conf eintragen und Apache neu starten<br />
if [ $updateconf = true ]<br />
then<br />
&nbsp; echo &quot;<br />
&lt;Location /svn/$repos&gt;<br />
&nbsp; DAV svn<br />
&nbsp; SVNPath /home/svn-repos/$repos<br />
&nbsp; SVNIndexXSLT \&quot;/subversion-xslt/svnindex.xsl\&quot;<br />
&nbsp; AuthType Basic<br />
&nbsp; AuthName \&quot;siarp.de repository\&quot;<br />
&nbsp; AuthUserFile /home/svn-repos/svn-auth-file<br />
&nbsp; Require user martin tilman<br />
&nbsp; SSLRequireSSL<br />
&lt;/Location&gt;<br />
&quot; &gt;&gt; /usr/local/apache2/conf/httpd.conf<br />
<br />
&nbsp; /usr/local/apache2/bin/apachectl restart<br />
fi</div></div><br />
</p></div></div></div> </div>
<div class="clearfix">
<div class="links"><ul class="links inline"><li class="comment_forbidden first last"></li>
</ul></div>
<div id="comments" class="comment-wrapper">
<h2 class="title">Comments</h2>
<a id="comment-14"></a>
<div class="comment odd">
<div class="clearfix">
<span class="submitted">4. June 2006 - 20:30 — <span class="username">Martin</span></span>
<h3><a href="index.html#comment-14" class="permalink" rel="bookmark">0.2?</a></h3>
<div class="content">
<div class="field field-name-comment-body field-type-text-long field-label-hidden"><div class="field-items"><div class="field-item even"><p><span class="geshifilter"><code class="text geshifilter-text">/usr/local/apache2/bin/apachectl restart</code></span></p>
<p>Was macht denn <span class="geshifilter"><code class="text geshifilter-text">chmod ug+s /home/svn-repos/$repos /home/svn-repos/$repos/*</code></span> und warum geht das nicht rekursiv?</p></div></div></div> </div>
</div>
<ul class="links inline"><li class="comment_forbidden first last"></li>
</ul></div>
<div class="indented"><a id="comment-15"></a>
<div class="comment comment-by-node-author even">
<div class="clearfix">
<span class="submitted">4. June 2006 - 20:35 — <span class="username">Tilman</span></span>
<h3><a href="../15/#comment-15" class="permalink" rel="bookmark">Schnelle Antwort</a></h3>
<div class="content">
<div class="field field-name-comment-body field-type-text-long field-label-hidden"><div class="field-items"><div class="field-item even"><p>Also eigentlich habe ich diese drei Zeilen mit den Rechten aus einer c't und benutze sie immer, ohne sie zu hinterfragen...</p></div></div></div> </div>
</div>
<ul class="links inline"><li class="comment_forbidden first last"></li>
</ul></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="region region-footer">
<div id="block-block-3" class="block block-block clearfix">
<div class="content">
<p>Alle Rechte liegen bei siarp.</p>
</div>
</div>
</div>
</div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->
<div id="sidebar-second" class="sidebar">
<div class="region region-sidebar-second">
<div id="block-menu-menu-autoren" class="block block-menu clearfix">
<h2 class="title">Written by</h2>
<div class="content">
<ul class="menu"><li class="first leaf"><a href="../../blog/2/">Martin</a></li>
<li class="last leaf"><a href="../../blog/3/">Tilman</a></li>
</ul> </div>
</div>
</div>
</div>
</div> <!-- /#container -->
</div> <!-- /#wrapper -->
</body>
<!-- Mirrored from siarp.de/comment/14 by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 08 Dec 2019 12:05:00 GMT -->
</html>