1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bozon_ynh.git synced 2024-09-03 18:16:09 +02:00
bozon_ynh/scripts/restore
2016-03-23 19:30:43 +01:00

11 lines
220 B
Bash

#! /bin/bash
app=bozon
app_path=/var/www/$app
data_path=/home/yunohost.app/$app
save_path=$1
sudo mv $save_path $app_path
sudo mv $app_path/data $data_path
sudo rm -rf $app_path/data
sudo chown -R www-data: $data_path