blob: 31e9a389b2a96adf3f9b3f6593dbd2e176543a61 [file] [log] [blame]
Murat Parlakisikf95672c2016-12-05 00:53:17 -08001#!/bin/bash -e
2
3loxi_uid=$(stat -c'%u' /loxi/loxigen.py)
4loxi_gid=$(stat -c'%g' /loxi/loxigen.py)
5usermod -u $loxi_uid -g $loxi_gid loxi || echo "ok"
6
7cd /loxi
8if [[ "$*" ]]; then
9 sudo -u loxi -i /bin/bash -c "$*"
10else
11 sudo -u loxi -i /bin/bash
12fi
13