root@puppetclient-ubuntu:/home/azureuser#cat /etc/.bash_aliases
alias extend_shutdown_15='bash extend_shutdown.sh 15 ; bash /bin/max_timetrack.sh'
alias extend_shutdown_30='bash extend_shutdown.sh 30 ; bash /bin/max_timetrack.sh'
alias extend_shutdown_60='bash extend_shutdown.sh 60 ; bash /bin/max_timetrack.sh'
#try to automate and execute the "source /etc/.bash_aliases" through shell script but it is not working means changes are not effecting.
root@puppetclient-ubuntu:/home/azureuser# cat alias.sh
#!/bin/bash
source ~/.bash_aliases
when I do source /etc/.bash_aliases
the alias custom commands are available only for root user and it is not available for all others expect "root" if I do execute one time it should always available for the all users. Please help me to fix.Thanks.