mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Use the classic way to create read-only bind mount in ynh_backup
This commit is contained in:
parent
751e221406
commit
542a7a3b82
1 changed files with 1 additions and 2 deletions
|
@ -35,8 +35,7 @@ ynh_backup() {
|
|||
|
||||
if sudo mount --rbind "${SRCPATH}" "${DESTPATH}"; then
|
||||
# try to remount destination directory as read-only
|
||||
sudo mount -o remount,ro "${DESTPATH}" >/dev/null 2>&1 \
|
||||
|| sudo mount -o remount,ro,bind "${SRCPATH}" "${DESTPATH}" \
|
||||
sudo mount -o remount,ro,bind "${SRCPATH}" "${DESTPATH}" \
|
||||
|| true
|
||||
return 0
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue