mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
20 lines
440 B
Bash
20 lines
440 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
force=$1
|
|
|
|
function safe_copy () {
|
|
if [[ "$force" == "True" ]]; then
|
|
sudo yunohost service safecopy \
|
|
-s udisks-glue $1 $2 --force
|
|
else
|
|
sudo yunohost service safecopy \
|
|
-s udisks-glue $1 $2
|
|
fi
|
|
}
|
|
|
|
cd /usr/share/yunohost/templates/udisks-glue
|
|
|
|
if [[ "$(safe_copy udisks-glue.conf /etc/udisks-glue.conf | tail -n1)" == "True" ]]; then
|
|
sudo service udisks-glue restart
|
|
fi
|