#!/usr/bin/env bash
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
set_file_path="/home/theurbanestate-demo/locks/wp_demo_perm.lock"
reset_file_path="/tmp/wp_demo_edge_perm_reset.lock"
root_path_edge="/home/theurbanestate-demo/public/wp-content"
if [ -f "$set_file_path" ]; then
chown apache -R $root_path_edge
rm $set_file_path
touch $reset_file_path
else
exit 1
fi