#!/bin/bash #################################################################################################### #### author: SlickStack ############################################################################ #### link: https://slickstack.io ################################################################### #### mirror: http://mirrors.slickstack.io/bash/ss-install-craft-core.txt ########################### #### path: /var/www/ss-install-craft-core ########################################################## #### destination: n/a (not a boilerplate) ########################################################## #### purpose: Reinstalls the Craft module (CMS) package and non-config files (idempotent) ########## #### module version: Craft x.x.x ################################################################### #### sourced by: ss-install ######################################################################## #### bash aliases: ss install craft core ########################################################### #################################################################################################### ## SS-CONFIG MUST BE PROPERLY CONFIGURED AND ON CURRENT BUILD BEFORE RUNNING SS-INSTALL ## ## ENSURE YOUR SS-CONFIG BUILD REMAINS CURRENT BY RUNNING SS-UPDATE OCCASIONALLY ## ## include SlickStack configuration ## source /var/www/ss-config ## include SlickStack functions ## source /var/www/ss-functions #################################################################################################### #### SS-Install-Craft-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-install-craft-core: Reinstalls the Craft module (CMS) package and non-config files (idempotent)... ${NOCOLOR}" sleep "$SLEEP_MESSAGE_BEGIN" #################################################################################################### #### SS-Install-Craft-Core: Cleanup Temporary Files ################################################ #################################################################################################### ## delete tmp files ## # n/a #################################################################################################### #### SS-Install-Craft-Core: Install Ubuntu Utils ################################################### #################################################################################################### ## run ss-install-ubuntu-utils ## source /var/www/ss-install-ubuntu-utils #################################################################################################### #### SS-Install-Craft-Core: Reset Permissions (Craft Core) ######################################### #################################################################################################### ## run ss-perms-craft-core ## source /var/www/ss-perms-craft-core #################################################################################################### #### SS-Install-Craft-Core: Cleanup Temporary Files ################################################ #################################################################################################### ## delete tmp files ## # n/a #################################################################################################### #### SS-Install-Craft-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-install-craft-core #################################################################################################### #### SlickStack: External References Used To Improve This Script (Thanks, Interwebz) ############### #################################################################################################### ## Ref: ## SS_EOF