#!/bin/bash #################################################################################################### #### author: SlickStack ############################################################################ #### link: https://slickstack.io ################################################################### #### mirror: http://mirrors.slickstack.io/bash/ss-perms-magento-core.txt ########################### #### path: /var/www/ss-perms-magento-core ########################################################## #### destination: n/a (not a boilerplate) ########################################################## #### purpose: Resets all file and user permissions for the Magento core files and folders ########## #### module version: Magento x.x.x ################################################################# #### sourced by: ss-perms, ss-install-magento-core ################################################# #### bash aliases: ss perms magento core ########################################################### #################################################################################################### ## include SlickStack configuration ## source /var/www/ss-config ## include SlickStack functions ## source /var/www/ss-functions #################################################################################################### #### SS-Perms-Magento-Core: Message (Begin Script) ################################################# #################################################################################################### ## this is a simple message that announces to the shell the purpose of this bash script ## ## it will only be noticed by sudo users who manually call ss core bash scripts ## ## echo message ## echo -e "${PURPLE}Running ss-perms-magento-core: Resets all file and user permissions for the Magento core files and folders... ${NOCOLOR}" sleep "$SLEEP_MESSAGE_BEGIN" #################################################################################################### #### SS-Perms-Magento-Core: Reset Permissions (Magento Core) ####################################### #################################################################################################### ## SOON #################################################################################################### #### SS-Perms-Magento-Core: Touch Timestamp File (End Script) ###################################### #################################################################################################### ## this is a dummy timestamp file that will remember the last time this script was run ## ## it can be useful for developer reference and is sometimes used by SlickStack ## ## script timestamp ## touch /var/www/meta/.timestamp-ss-perms-magento-core #################################################################################################### #### SlickStack: External References Used To Improve This Script (Thanks, Interwebz) ############### #################################################################################################### ## Ref: ## SS_EOF