docs: Update 7 files
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 39s
Build-Test-Publish / build (linux/arm64) (push) Successful in 3m35s

This commit is contained in:
j
2025-12-30 10:23:08 +13:00
parent c31f08269b
commit 80450aadcc
7 changed files with 54 additions and 20 deletions

View File

@@ -202,6 +202,20 @@ namespace dropshell
return it != mUsers.end();
}
bool ServerConfig::createServerInfoEnv(std::string filepath) const
{
std::ofstream ofs(filepath);
if (!ofs.is_open())
{
error << "Couldn't write to " << filepath << std::endl;
return false;
}
ofs << "# Autogenerated file by dropshell on installation." << std::endl;
ofs << "SERVER=\"" << mServerName << "\"" << std::endl;
ofs.close();
return true;
}
bool ServerConfig::check_remote_dir_exists(const std::string &dir_path, std::string user) const
{
if (user.empty())