exe_bash_2017.2018/back

16 lines
215 B
Bash

#!/bin/bash
CURDate=$(date "+%Y%m%d%H%M")
FileName=$CURDate$DBUSER
DIR="./"
DIRAPACHE="/var/www"
DBHOST="" #--host=
if [ $# -gt 0 ] ; then
DIR=$1
echo "$1"
fi
if [ ! -d $DIR ]; then
mkdir $DIR
echo $DIR
fi