-
Notifications
You must be signed in to change notification settings - Fork 10
/
development.sh
30 lines (27 loc) · 1.01 KB
/
development.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#####################
# Configurations
#####################
# backup the original config folder
sudo mv -b /var/www/bahmni_config /var/www/bahmni_config-original
# Link your config folder
sudo ln -s /development/bahmni_config /var/www/bahmni_config
# Make bahmni user the owner for this new link
sudo chown -h bahmni:bahmni /var/www/bahmni_config
#####################
# Reports
#####################
# backup the original reports folder
#sudo mv -b /opt/bahmni-reports /opt/bahmni-reports-original
# Link your reports folder
#sudo ln -s /development/bahmni-reports /opt/bahmni-reports
# Make bahmni user the owner for this new link
#sudo chown -h bahmni:bahmni /opt/bahmni-reports
#####################
# Development
#####################
# Rename the original folder for backup
sudo mv /var/www/bahmniapps /var/www/bahmniapps-original
# Linking EMR UI folders
sudo ln -s /development/openmrs-module-bahmniapps/ui/app /var/www/bahmniapps
# Make the user bahmni owner of this new link
sudo chown -h bahmni:bahmni /var/www/bahmniapps