#!/bin/bash # files-update.sh if [[ $1 == "" ]] then echo "This script requires an install path, but none was specified. Aborting." exit 1 fi install_path=$1 # ---------- version 1.0.0 ------------- # Initial release # -------------------------------------- # ---------- version 1.1.0 ------------- # Change global database value from $mts_db to $drs_db sed -i "s/mts_db/drs_db/g" $install_path/db.php # --------------------------------------- # ---------- version 1.1.1 ------------- # Nothing to do for this version # -------------------------------------- # ---------- version 1.1.2 ------------- # Nothing to do for this version # -------------------------------------- # ---------- version 1.2.0 ------------- # Nothing to do for this version # -------------------------------------- # ---------- version 1.3.0 ------------- # Nothing to do for this version # -------------------------------------- # ---------- version 1.3.1 ------------- # Nothing to do for this version # -------------------------------------- # ---------- version 1.3.2 ------------- # Nothing to do for this version # -------------------------------------- # ---------- version 1.3.3 ------------- # Nothing to do for this version # -------------------------------------- # ---------- version 1.4.0 ------------- # Nothing to do for this version # -------------------------------------- # ---------- version 1.4.1 ------------- # Nothing to do for this version # -------------------------------------- # ---------- version 1.4.2 ------------- # Nothing to do for this version # -------------------------------------- # ---------- version 1.4.3 ------------- # Nothing to do for this version # -------------------------------------- # ---------- version 1.4.4 ------------- # Nothing to do for this version # -------------------------------------- # ---------- version 1.4.5 ------------- # Add AllowOverride Options to the apache conf-available file install_loc=$(basename $install_path) if ! grep -q "AllowOverride Options" /etc/apache2/conf-available/$install_loc.conf then sed -i '/^