mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-21 19:34:41 +02:00
global-functions: $MkDir: clean path
This commit is contained in:
parent
6cea5a9f9b
commit
dc148065dc
1 changed files with 3 additions and 0 deletions
|
@ -480,8 +480,11 @@
|
|||
:set MkDir do={
|
||||
:local Dir [ :tostr $1 ];
|
||||
|
||||
:global CleanFilePath;
|
||||
:global WaitForFile;
|
||||
|
||||
:set Dir [ $CleanFilePath $Dir ];
|
||||
|
||||
:if ([ :len [ / file find where name=$Dir type="directory" ] ] = 0) do={
|
||||
:local WwwVal [ / ip service get www ];
|
||||
/ ip service set www address=127.0.0.1/32 disabled=no port=80;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue