mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
modules=('Cancer-streamline_cancer' 'Pharmacy-streamline_pharmacy' 'Payroll-streamline_payroll' 'PatientFinance-streamline_patient_finance' 'PatientDiscounts-streamline_patient_discounts' 'Maternity-streamline_maternity' 'Journals-streamline_journals' 'Invoices-streamline_invoices' 'Investigations-streamline_investigations' 'Insurance-streamline_insurance' 'Hiv-streamline_hiv' 'FinanceReports-streamline_finance_reports'
|
||||
'Finance-streamline_finance' 'EyeClinic-streamline_eye_clinic' 'Expenses-streamline_expenses' 'Diabetes-streamline_diabetes' 'Budgets-streamline_budgets' 'Banking-streamline_banking' 'Antenatal-streamline_ante_natal' 'Stores-streamline_stores' 'Theatre-streamline_theatre' 'Reports-streamline_reports' 'WardManagement-streamline_ward_management')
|
||||
|
||||
for module in "${modules[@]}"; do
|
||||
module_array=($(echo "$module" | sed 's/-/ /g'))
|
||||
|
||||
echo "Cloning ${module_array[0]}"
|
||||
|
||||
if [ ! -d Modules/"${module_array[0]}" ]; then
|
||||
mkdir -p Modules/"${module_array[0]}";
|
||||
fi
|
||||
|
||||
cd Modules/"${module_array[0]}" || continue
|
||||
|
||||
git clone git@bitbucket.org:dcsammi/"${module_array[1]}".git . || echo "Could not clone ${module_array[0]}"
|
||||
|
||||
cd ../../
|
||||
done
|
||||
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
modules=('Cancer-streamline_cancer' 'Pharmacy-streamline_pharmacy' 'Payroll-streamline_payroll' 'PatientFinance-streamline_patient_finance' 'PatientDiscounts-streamline_patient_discounts' 'Maternity-streamline_maternity' 'Journals-streamline_journals' 'Invoices-streamline_invoices' 'Investigations-streamline_investigations' 'Insurance-streamline_insurance' 'Hiv-streamline_hiv' 'FinanceReports-streamline_finance_reports'
|
||||
'Finance-streamline_finance' 'EyeClinic-streamline_eye_clinic' 'Expenses-streamline_expenses' 'Diabetes-streamline_diabetes' 'Budgets-streamline_budgets' 'Banking-streamline_banking' 'Antenatal-streamline_ante_natal' 'Stores-streamline_stores' 'Theatre-streamline_theatre' 'Reports-streamline_reports' 'WardManagement-streamline_ward_management')
|
||||
|
||||
for module in "${modules[@]}"; do
|
||||
module_array=($(echo "$module" | sed 's/-/ /g'))
|
||||
|
||||
echo "Cloning ${module_array[0]}"
|
||||
|
||||
if [ ! -d Modules/"${module_array[0]}" ]; then
|
||||
mkdir -p Modules/"${module_array[0]}";
|
||||
fi
|
||||
|
||||
cd Modules/"${module_array[0]}" || continue
|
||||
|
||||
git clone https://bitbucket.org/dcsammi/"${module_array[1]}".git . || echo "Could not clone ${module_array[0]}"
|
||||
|
||||
cd ../../
|
||||
done
|
||||
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -z "$branch" ]]; then
|
||||
echo "Please specify the branch you want to checkout to"
|
||||
exit;
|
||||
fi
|
||||
|
||||
modules=('Cancer' 'Pharmacy' 'Payroll' 'PatientFinance' 'PatientDiscounts' 'Maternity' 'Journals' 'Invoices' 'Investigations' 'Insurance' 'Hiv' 'FinanceReports'
|
||||
'Finance' 'EyeClinic' 'Expenses' 'Diabetes' 'Budgets' 'Banking' 'Antenatal' 'Stores' 'Theatre' 'Reports' 'WardManagement')
|
||||
|
||||
for module in "${modules[@]}"; do
|
||||
echo "Status: ${module}"
|
||||
|
||||
cd Modules/"$module" || continue
|
||||
|
||||
git checkout "$branch"
|
||||
|
||||
cd ../../
|
||||
done
|
||||
|
||||
git checkout "$branch"
|
||||
@@ -0,0 +1,78 @@
|
||||
#!/bin/bash
|
||||
|
||||
# replace content for .gitmodules files to enable deinit
|
||||
cat .gitmodules.example > .gitmodules
|
||||
|
||||
git submodule deinit -f Modules/WardManagement
|
||||
rm -R Modules/WardManagement
|
||||
|
||||
git submodule deinit -f Modules/Investigations
|
||||
rm -R Modules/Investigations
|
||||
|
||||
git submodule deinit -f Modules/Hiv
|
||||
rm -R Modules/Hiv
|
||||
|
||||
git submodule deinit -f Modules/Invoices
|
||||
rm -R Modules/Invoices
|
||||
|
||||
git submodule deinit -f Modules/Journals
|
||||
rm -R Modules/Journals
|
||||
|
||||
git submodule deinit -f Modules/Maternity
|
||||
rm -R Modules/Maternity
|
||||
|
||||
git submodule deinit -f Modules/PatientDiscounts
|
||||
rm -R Modules/PatientDiscounts
|
||||
|
||||
git submodule deinit -f Modules/PatientFinance
|
||||
rm -R Modules/PatientFinance
|
||||
|
||||
git submodule deinit -f Modules/Payroll
|
||||
rm -R Modules/Payroll
|
||||
|
||||
git submodule deinit -f Modules/Pharmacy
|
||||
rm -R Modules/Pharmacy
|
||||
|
||||
git submodule deinit -f Modules/Cancer
|
||||
rm -R Modules/Cancer
|
||||
|
||||
git submodule deinit -f Modules/Reports
|
||||
rm -R Modules/Reports
|
||||
|
||||
git submodule deinit -f Modules/Theatre
|
||||
rm -R Modules/Theatre
|
||||
|
||||
git submodule deinit -f Modules/Stores
|
||||
rm -R Modules/Stores
|
||||
|
||||
git submodule deinit -f Modules/Antenatal
|
||||
rm -R Modules/Antenatal
|
||||
|
||||
git submodule deinit -f Modules/Banking
|
||||
rm -R Modules/Banking
|
||||
|
||||
git submodule deinit -f Modules/Budgets
|
||||
rm -R Modules/Budgets
|
||||
|
||||
git submodule deinit -f Modules/Diabetes
|
||||
rm -R Modules/Diabetes
|
||||
|
||||
git submodule deinit -f Modules/Expenses
|
||||
rm -R Modules/Expenses
|
||||
|
||||
git submodule deinit -f Modules/EyeClinic
|
||||
rm -R Modules/EyeClinic
|
||||
|
||||
git submodule deinit -f Modules/Finance
|
||||
rm -R Modules/Finance
|
||||
|
||||
git submodule deinit -f Modules/FinanceReports
|
||||
rm -R Modules/FinanceReports
|
||||
|
||||
git submodule deinit -f Modules/Insurance
|
||||
rm -R Modules/Insurance
|
||||
|
||||
# finally delete the .git/modules folder
|
||||
rm -rf .git/modules/Modules
|
||||
|
||||
cat /dev/null > .gitmodules
|
||||
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
function get_branch() {
|
||||
git symbolic-ref --short -q HEAD || echo "main";
|
||||
}
|
||||
|
||||
modules=('Cancer' 'Pharmacy' 'Payroll' 'PatientFinance' 'PatientDiscounts' 'Maternity' 'Journals' 'Invoices' 'Investigations' 'Insurance' 'Hiv' 'FinanceReports'
|
||||
'Finance' 'EyeClinic' 'Expenses' 'Diabetes' 'Budgets' 'Banking' 'Antenatal' 'Stores' 'Theatre' 'Reports' 'WardManagement')
|
||||
|
||||
for module in "${modules[@]}"; do
|
||||
echo "Status: ${module}"
|
||||
|
||||
cd Modules/"$module" || continue
|
||||
|
||||
branch_name=`get_branch`;
|
||||
|
||||
git pull origin "${branch_name}"
|
||||
|
||||
cd ../../
|
||||
done
|
||||
|
||||
echo "Status: Updating main"
|
||||
branch_name=`get_branch`;
|
||||
git pull origin "${branch_name}"
|
||||
php artisan migrate
|
||||
php artisan db:seed --class=PermissionTableSeeder
|
||||
php artisan db:seed --class=PermissionsCategoryTableSeeder
|
||||
composer install
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
modules=('Cancer' 'Pharmacy' 'Payroll' 'PatientFinance' 'PatientDiscounts' 'Maternity' 'Journals' 'Invoices' 'Investigations' 'Insurance' 'Hiv' 'FinanceReports'
|
||||
'Finance' 'EyeClinic' 'Expenses' 'Diabetes' 'Budgets' 'Banking' 'Antenatal' 'Stores' 'Theatre' 'Reports' 'WardManagement')
|
||||
|
||||
for module in "${modules[@]}"; do
|
||||
echo "Status: ${module}"
|
||||
|
||||
cd Modules/"$module" || continue
|
||||
|
||||
git pull
|
||||
|
||||
cd ../../
|
||||
done
|
||||
|
||||
echo "Status: Updating main"
|
||||
git pull
|
||||
php artisan migrate
|
||||
composer install
|
||||
|
||||
Reference in New Issue
Block a user