Commit 4e71e0e4 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(install): lock when user is not root

parent dd5c3110
......@@ -146,6 +146,7 @@ sub BUILD {
sub _install($self) {
my $pid = Proc::PID::File->new(name => "ravada_install");
$pid->file({dir => "/run/user/$>"}) if $>;
if ( $pid->alive ) {
print "Waiting for install process to finish" if $ENV{TERM};
while ( $pid->alive ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment