]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Adding local profile within init script
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 30 Jun 2025 05:45:45 +0000 (01:45 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 30 Jun 2025 05:45:45 +0000 (01:45 -0400)
linux/osukiss/mailleur

index f2ab3e44d1879ba9ce7c6091ec9957c1a29ff4c2..c60b56663aaed201aebf0b40d43eb45d4fea6588 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /usr/bin/bash
 #=================================================================
 # Begin receiver
 #
@@ -26,6 +26,11 @@ APPNAME=mailleur
 DAEMON=receiver
 DAEMON_PID=/run/${APPNAME}/${DAEMON}.lock
 
+#checking profile
+if [ -f  /etc/profile ] ; then
+  . /etc/profile
+  fi
+
 # Some functions to make the below more readable
 
 #loading load configuration file