Remove directory if it exists
This commit is contained in:
parent
1fbe08647a
commit
1c063ee4df
|
@ -262,6 +262,10 @@ function install_edith {
|
|||
|
||||
EDITH_ONION_HOSTNAME=$(add_onion_service edith 80 ${EDITH_ONION_PORT})
|
||||
|
||||
if [ -d /var/www/$EDITH_DOMAIN_NAME/htdocs ]; then
|
||||
rm -rf /var/www/$EDITH_DOMAIN_NAME/htdocs
|
||||
fi
|
||||
|
||||
if [ -d /repos/edith ]; then
|
||||
mkdir /var/www/$EDITH_DOMAIN_NAME/htdocs
|
||||
cp -r -p /repos/edith/. /var/www/$EDITH_DOMAIN_NAME/htdocs
|
||||
|
|
Loading…
Reference in New Issue