1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

Update restore

This commit is contained in:
frju365 2017-02-12 17:44:46 +01:00 committed by GitHub
parent d962f86c32
commit 66e417563b

View file

@ -36,17 +36,6 @@ sudo apt-get -y -qq install php5-sqlite
sudo yunohost app checkurl "${domain}${path}" -a "$app" \ sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|| ynh_die "Path not available: ${domain}${path}" || ynh_die "Path not available: ${domain}${path}"
if [ -d $final_path ]; then
echo "There is already a directory: $final_path " | sudo tee /dev/stderr
ynh_die
fi
conf=/etc/nginx/conf.d/$domain.d/$app.conf
if [ -f $conf ]; then
echo "There is already a nginx conf file at this path: $conf " | sudo tee /dev/stderr
ynh_die
fi
# Restore sources & data # Restore sources & data
sudo cp -a "./sources" $final_path sudo cp -a "./sources" $final_path