mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-27 11:20:54 +00:00
27 lines
849 B
Bash
27 lines
849 B
Bash
|
#!/bin/bash
|
||
|
rm log.log 2> /dev/null
|
||
|
|
||
|
# Clean the client
|
||
|
|
||
|
# Get the client directory
|
||
|
client_directory=`cat cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
|
||
|
|
||
|
# Get the client setup directories
|
||
|
client_setup_directories=`cat cfg/directories.cfg | grep "client_setup_directory" | sed -e 's/client_setup_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
|
||
|
|
||
|
# Log error
|
||
|
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* > log.log
|
||
|
echo \*\*\*\*\*\*\* CLIENT CLEAN>> log.log
|
||
|
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* >> log.log
|
||
|
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
|
||
|
echo \*\*\*\*\*\*\* CLIENT CLEAN
|
||
|
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
|
||
|
|
||
|
# For each directory
|
||
|
for i in $client_setup_directories ; do
|
||
|
# Create the directory
|
||
|
rm $client_directory/$i/*
|
||
|
|
||
|
# Idle
|
||
|
./idle.bat
|
||
|
done
|