added exec chmod

This commit is contained in:
Sarmonsiill 2022-03-25 17:33:44 +00:00
parent 641fc47d3e
commit d7661aff25
1 changed files with 7 additions and 0 deletions

View File

@ -95,6 +95,13 @@ fn main() {
exit(1)
}
prog("chmodding ssh folder with exec")
execute_chmod_sec := os.execute("sudo chmod -R u+rwx $home_folder/.ssh")
if execute_chmod_sec.exit_code != 0 {
fail(execute_chmod_sec.output)
exit(1)
}
prog("creating www folder")
execute_www := os.execute("sudo mkdir $www_folder")
if execute_www.exit_code != 0 {