From 5c161d5bcae9e45ceaeb3eb22adde5f7f66b9f39 Mon Sep 17 00:00:00 2001 From: ravinderkabli Date: Mon, 8 Jun 2026 22:01:10 +0530 Subject: [PATCH] BAH-4460|Updated shebang order --- package/scripts/postinstall.sh | 3 +-- package/scripts/preinstall.sh | 3 +-- package/scripts/preuninstall.sh | 3 +-- scripts/vagrant-link.sh | 3 +-- scripts/vagrant_functions.sh | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/package/scripts/postinstall.sh b/package/scripts/postinstall.sh index f93ba655..7019c9be 100644 --- a/package/scripts/postinstall.sh +++ b/package/scripts/postinstall.sh @@ -1,3 +1,4 @@ +#!/bin/bash # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://www.bahmni.org/license/mplv2hd. @@ -5,8 +6,6 @@ # Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS # graphic logo is a trademark of OpenMRS Inc. -#!/bin/bash - if [ -f /etc/bahmni-installer/bahmni.conf ]; then . /etc/bahmni-installer/bahmni.conf fi diff --git a/package/scripts/preinstall.sh b/package/scripts/preinstall.sh index 7f3ccee8..7a4bc428 100644 --- a/package/scripts/preinstall.sh +++ b/package/scripts/preinstall.sh @@ -1,3 +1,4 @@ +#!/bin/bash # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://www.bahmni.org/license/mplv2hd. @@ -5,8 +6,6 @@ # Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS # graphic logo is a trademark of OpenMRS Inc. -#!/bin/bash - rm -rf /opt/bahmni-implementer-interface/ rm -rf /var/www/implementer_interface rm -f /etc/httpd/conf.d/implementer_interface_ssl.conf diff --git a/package/scripts/preuninstall.sh b/package/scripts/preuninstall.sh index e3cae07a..55a9efd0 100644 --- a/package/scripts/preuninstall.sh +++ b/package/scripts/preuninstall.sh @@ -1,11 +1,10 @@ +#!/bin/bash # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://www.bahmni.org/license/mplv2hd. # # Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS # graphic logo is a trademark of OpenMRS Inc. - -#!/bin/bash if [ $1 -eq 0 ]; then rm -rf /var/www/implementer_interface rm -rf /etc/httpd/conf.d/implementer_interface_ssl.conf diff --git a/scripts/vagrant-link.sh b/scripts/vagrant-link.sh index 4539c54f..8d732147 100755 --- a/scripts/vagrant-link.sh +++ b/scripts/vagrant-link.sh @@ -1,3 +1,4 @@ +#!/bin/sh -x -e # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://www.bahmni.org/license/mplv2hd. @@ -5,8 +6,6 @@ # Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS # graphic logo is a trademark of OpenMRS Inc. -#!/bin/sh -x -e - PATH_OF_CURRENT_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source $PATH_OF_CURRENT_SCRIPT/vagrant_functions.sh #USER=jss diff --git a/scripts/vagrant_functions.sh b/scripts/vagrant_functions.sh index b2f73317..6adda407 100755 --- a/scripts/vagrant_functions.sh +++ b/scripts/vagrant_functions.sh @@ -1,3 +1,4 @@ +#!/bin/bash # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://www.bahmni.org/license/mplv2hd. @@ -5,8 +6,6 @@ # Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS # graphic logo is a trademark of OpenMRS Inc. -#!/bin/bash - TEMP_SCRIPT_DIR=`dirname -- "$0"` SCRIPT_DIR=`cd $TEMP_SCRIPT_DIR; pwd` export SCRIPT_DIR