Files
MainSite/shell/Prepare.sh
2020-05-10 18:55:36 +04:00

28 lines
893 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
cd ..
#Копируем файл конфигурации, если его не было
if [ ! -f "config.py" ]; then
echo " Не найден файл конфигурации. Копируем его из примера...";
cp samples/config_sample.py config.py
fi
DIR="app/static/WAV"
if [ ! -d "$DIR" ]; then
echo " Создаем папку настроек для звуковых записей.."
mkdir $DIR
fi
echo " Загружаем настройки в память..."
#Создаем папку для программы, если её не было
DIR="/dev/shm/"$(python3 Scripts.py --getconfig SHMNAME) #"/dev/shm/phonecalls"
if [ ! -d "$DIR" ]; then
echo " Создаем папку настроек в памяти..."
mkdir $DIR
fi
#Копируем настройки
#rsync -ah --delete db/Settings $DIR