mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
https://github.com/mvdan/sh
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit dfaea9df65
)
14 lines
231 B
Bash
Executable File
14 lines
231 B
Bash
Executable File
#! /bin/sh
|
|
# Run zulip-ec2-configure-interfaces when eth0 is brought up
|
|
|
|
set -e
|
|
|
|
# Only run from ifup.
|
|
if [ "$MODE" != start ]; then
|
|
exit 0
|
|
fi
|
|
|
|
if [ "$IFACE" = eth0 ]; then
|
|
/usr/local/sbin/zulip-ec2-configure-interfaces
|
|
fi
|