mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-03-14 23:39:24 +01:00
vncserver: extract CreateDotVncDir()
This commit is contained in:
parent
a560276817
commit
8da1612d4c
@ -76,11 +76,7 @@ chop($host = `uname -n`);
|
||||
&CheckGeometryAndDepth();
|
||||
|
||||
# Create the user's vnc directory if necessary.
|
||||
if (!(-e $vncUserDir)) {
|
||||
if (!mkdir($vncUserDir,0755)) {
|
||||
die "$prog: Could not create $vncUserDir.\n";
|
||||
}
|
||||
}
|
||||
&CreateDotVncDir();
|
||||
|
||||
$selectDeCmd = "builder/startup/deb/select-de.sh";
|
||||
if (!$skipxstartup) {
|
||||
@ -947,3 +943,11 @@ sub ProcessCliOptions {
|
||||
$fpArgSpecified = 1;
|
||||
}
|
||||
}
|
||||
|
||||
sub CreateDotVncDir {
|
||||
if (!(-e $vncUserDir)) {
|
||||
if (!mkdir($vncUserDir,0755)) {
|
||||
die "$prog: Could not create $vncUserDir.\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user