Skip to content

Commit

Permalink
Merge pull request #22 from mjh1/master
Browse files Browse the repository at this point in the history
mount the lib directory from the parent machine too
  • Loading branch information
Sameer Naik authored Feb 6, 2017
2 parents 3fa8b26 + ac8bee7 commit 560c966
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ rewire_wowza() {

rm -rf /usr/local/WowzaStreamingEngine/stats
ln -sf ${WOWZA_DATA_DIR}/stats /usr/local/WowzaStreamingEngine/stats

rm -rf /usr/local/WowzaStreamingEngine/lib
ln -sf ${WOWZA_DATA_DIR}/lib /usr/local/WowzaStreamingEngine/lib
}

initialize_data_dir() {
Expand All @@ -84,6 +87,7 @@ initialize_data_dir() {
[[ ! -d ${WOWZA_DATA_DIR}/backup ]] && cp -a /usr/local/WowzaStreamingEngine/backup ${WOWZA_DATA_DIR}/backup
[[ ! -d ${WOWZA_DATA_DIR}/applications ]] && cp -a /usr/local/WowzaStreamingEngine/applications ${WOWZA_DATA_DIR}/applications
[[ ! -d ${WOWZA_DATA_DIR}/stats ]] && mkdir -p ${WOWZA_DATA_DIR}/stats
[[ ! -d ${WOWZA_DATA_DIR}/lib ]] && cp -a /usr/local/WowzaStreamingEngine/lib ${WOWZA_DATA_DIR}/lib
touch ${WOWZA_DATA_DIR}/.firstrun
fi
}
Expand Down

0 comments on commit 560c966

Please sign in to comment.