Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor update to docker python service script.
Update to the docker file to include fs_sync. fs_sync will sync the docker local freeswitch directory with the freeswitch main config directory and then fix the permissions so that its owned by freeswitch:daemon.
- Loading branch information
Showing
3 changed files
with
104 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
LOCAL_PATH="/root/freeswitch/" | ||
FS_PATH="/usr/local/freeswitch/conf/" | ||
|
||
# Update the path to include freeswitch bin | ||
PATH="$PATH:/usr/local/freeswitch/bin" | ||
|
||
# Sync the directory contents | ||
rsync -avz $LOCAL_PATH $FS_PATH | ||
|
||
# Update the permissions | ||
chown -R freeswitch:daemon $FS_PATH | ||
|
||
# Reload mod_sofia | ||
fs_cli -x "reload mod_sofia" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters