fixed bind-dirs legacy import function
https://phabricator.whonix.org/T501
This commit is contained in:
parent
4d015432ce
commit
d14203f1ac
@ -44,15 +44,20 @@ init() {
|
|||||||
[ -n "$rw_dest_dir" ] || rw_dest_dir="/rw/bind-dirs"
|
[ -n "$rw_dest_dir" ] || rw_dest_dir="/rw/bind-dirs"
|
||||||
[ -n "$symlink_level_max" ] || symlink_level_max="10"
|
[ -n "$symlink_level_max" ] || symlink_level_max="10"
|
||||||
mkdir --parents "$rw_dest_dir"
|
mkdir --parents "$rw_dest_dir"
|
||||||
|
shopt -s nullglob
|
||||||
|
shopt -s dotglob
|
||||||
}
|
}
|
||||||
|
|
||||||
legacy() {
|
legacy() {
|
||||||
if [ -d /rw/srv/qubes-whonix ]; then
|
local item
|
||||||
mv /rw/srv/qubes-whonix /rw/bind-dirs || true
|
for item in /rw/srv/qubes-whonix/* /rw/srv/whonix/*; do
|
||||||
fi
|
mv "$item" /rw/bind-dirs/ || true
|
||||||
if [ -d /rw/srv/whonix ]; then
|
done
|
||||||
mv /rw/srv/whonix /rw/bind-dirs || true
|
for item in /rw/srv/qubes-whonix /rw/srv/whonix; do
|
||||||
fi
|
if [ -d "$item" ]; then
|
||||||
|
rmdir "$item" || true
|
||||||
|
fi
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
bind_dirs() {
|
bind_dirs() {
|
||||||
|
Loading…
Reference in New Issue
Block a user