Skip to content

Commit

Permalink
adding shell scripts section
Browse files Browse the repository at this point in the history
  • Loading branch information
shapeshed committed Aug 26, 2009
1 parent 9d03e74 commit b651e0a
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 2 deletions.
1 change: 1 addition & 0 deletions _includes/header.html
Expand Up @@ -19,6 +19,7 @@
<li><a href="/expressionengine/">ExpressionEngine</a></li>
<li><a href="/html-css/">HTML / CSS</a></li>
<li><a href="/javascript/">JavaScript</a></li>
<li><a href="/shell-scripts/">Shell Scripts</a></li>
<li><a href="/about/">About</a></li>
</ul>
</nav>
Expand Down
10 changes: 8 additions & 2 deletions _layouts/post.html
Expand Up @@ -6,12 +6,18 @@ <h1 class="article">{{ page.title }}</h1>
<nav>
<ul id="tabs">
<li><a href="#documentation" id="documentation-tab">Documentation</a></li>
<li><a href="#tickets" id="tickets-tab">Tickets</a></li>
{% if page.lighthouse %}<li><a href="#tickets" id="tickets-tab">Tickets</a></li>{% endif %}
<li><a href="#comments" id="comments-tab">Comments</a></li>
<li><a href="#donations" id="donations-tab">Donations</a></li>
{% if page.pledgie %}<li><a href="#donations" id="donations-tab">Donations</a></li>{% endif %}
</ul>
</nav>
<section id="documentation">
{% if page.github_gist %}
<aside>
<h4>Downloads</h4>
<p><a href="{{ page.github_gist }}download">Download the latest version</a></p>
</aside>
{% endif %}
{% if page.github_tags %}
<aside>
<h4>Downloads</h4>
Expand Down
71 changes: 71 additions & 0 deletions _posts/2009-08-26-exp-permissions.markdown
@@ -0,0 +1,71 @@
---
layout: post
meta_keywords: expressionengine, folder permissions, shell script, chmod
meta_description: Correctly sets permissions for a new ExpressionEngine site
title: ExpressionEngine Permissions
summary: Correctly sets permissions for a new ExpressionEngine site
categories: shell-scripts
github_gist: http://gist.github.com/gists/175451/

---

* **Author**: [George Ornbo][]
* **Source Code**: [Github][]

## Compatibility

* ExpressionEngine Version 1.6.x
* POSIX compliant Operating System

## License

ExpressionEngine permissions is free for personal and commercial use.

Copyright is licensed under a [Open Source Initiative - BSD License][] license.

## Installation

Add the file exp_permissions.sh to your /bin folder.

Remember to make the file executable. Details on how to make shell scripts executable can be found [here](http://shapeshed.com/s/2351)

## Name

{{ page.title }}

## Synopsis

{{ page.summary }}

## Description

To use this script navigate to the root of your ExpressionEngine site and then run the script:

exp_permsissions.sh

You will be prompted to enter a system folder. If you are using the default 'system' just hit return. If you are using a custom folder name enter it here.

If all goes well the script will exit silently.

The script sets the following permssions:

666:

* /path.php
* /system/config.php
* /system/config_bak.php

777:

* /images/avatars/uploads/
* /images/captchas/
* /images/member_photos/
* /images/pm_attachments/
* /images/signature_attachments/
* /images/uploads/
* /system/cache/

[George Ornbo]: http://shapeshed.com/
[ExpressionEngine]:http://www.expressionengine.com/index.php?affiliate=shapeshed
[Open Source Initiative - BSD License]: http://opensource.org/licenses/bsd-license.php
[Github]: http://gist.github.com/gists/175451/
13 changes: 13 additions & 0 deletions shell-scripts/index.html
@@ -0,0 +1,13 @@
---
layout: default
title: Shell Scripts
meta_keywords: bash, shell script, scripts, perl
meta_description: Bash and Shell Scripts available for download and written by George Ornbo
---

<h1>Shell Scripts</h1>
<ul class="posts">
{% for post in site.categories.shell-scripts %}
<li><a href="{{ post.url }}">{{ post.title }}<br /></a>{{ post.summary }}</li>
{% endfor %}
</ul>

0 comments on commit b651e0a

Please sign in to comment.