Commit 8e11c7ba authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(install): lock when user is not root

parent 02c6936d
......@@ -141,6 +141,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 ) {
......
Supports Markdown
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