Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update setup.sh with custom php.ini #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 20 additions & 8 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,42 @@ else
echo "config.php already exists; no changes made"
fi

# Create custom php.ini file
if [ -f config/php.ini ]; then
cp config/php.ini /etc/php.ini
chown root:root /etc/php.ini
chmod 644 /etc/php.ini
fi

# Create ssh_grid_workers file
if [ ! -f config/ssh_grid_workers.php ]; then
cp config/ssh_grid_workers.php.sample config/ssh_grid_workers.php
else
echo "ssh_grid_workers.php already exists; no changes made"
fi

# Set world-writable permisions on data/ and tmp/
# Set permisions on data/ and tmp/
echo ++++++++++ creating directories ...
mkdir -p public_html/data
mkdir -p public_html/data/tmp
mkdir -p feedback
mkdir -p tmp
echo ++++++++++ setting permisions ...
chmod 777 public_html/data
chmod 777 public_html/data/tmp
chmod 777 tmp/
chown apache:apache public_html/data
chmod 770 public_html/data
chown apache:apache public_html/data/tmp
chmod 770 public_html/data/tmp
chmod 755 tmp/

# Set world-writable permisions on feedback/
chmod 777 feedback/
# Set permisions on feedback/
chown apache:apache feedback/
chmod 770 feedback/
touch feedback/molprobity.log
chmod 666 feedback/molprobity.log
chown apache:apache feedback/molprobity.log
chmod 664 feedback/molprobity.log
touch feedback/user_paths.log
chmod 666 feedback/user_paths.log
chown apache:apache feedback/user_paths.log
chmod 664 feedback/user_paths.log

# Create symlinks for executables
cd bin
Expand Down