Merge pull request #87 from deathbaba/apache
[iOS] Copy index.php to adhoc dir and give permissions to Apache
This commit is contained in:
commit
da8f3a2346
1 changed files with 6 additions and 0 deletions
|
@ -40,6 +40,12 @@ if [ -d "$RESULT_DIR" ]; then
|
|||
fi
|
||||
mkdir -p "$RESULT_DIR"
|
||||
|
||||
if [ $# == 1 ]; then
|
||||
cp "$LOCAL_DIRNAME"/index.php "$RESULT_DIR"/index.php
|
||||
chmod g+w "$RESULT_DIR"/
|
||||
chown :_www "$RESULT_DIR"/
|
||||
fi
|
||||
|
||||
# switch to the keychain with private key
|
||||
security list-keychains -s "$KEYCHAIN"
|
||||
# need to unlock keychain to avoid "User interaction is not allowed" error
|
||||
|
|
Reference in a new issue