#!/bin/bash

if [ -f /usr/bin/fly-kiosk-config-dir.sh ]; then
. /usr/bin/fly-kiosk-config-dir.sh
fi

if [ ! -z $FLY_KIOSK_CONFIG_DIR ]; then

if [ -f ~/.bashrc ]; then
chmod 0644 ~/.bashrc
chown "$USER":"$USER" ~/.bashrc
fi
if [ -f ~/.bash_profile ]; then
chmod 0644 ~/.bash_profile
chown "$USER":"$USER" ~/.bash_profile
fi
if [ -f ~/.profile ]; then
chmod 0644 ~/.profile
chown "$USER":"$USER" ~/.profile
fi
if [ -f ~/.bash_login ]; then
chmod 0644 ~/.bash_login
chown "$USER":"$USER" ~/.bash_login
fi
if [ -f ~/.bash_logout ]; then
chmod 0644 ~/.bash_logout
chown "$USER":"$USER" ~/.bash_logout
fi

fi
