Initial Build
This commit is contained in:
parent
3d1e27919e
commit
44f567490b
@ -1,6 +1,6 @@
|
||||
FROM alpine:latest
|
||||
# Install dependencies
|
||||
RUN apk add --no-cache --update g++ zsh git ca-certificates curl openssh-client
|
||||
RUN apk add --no-cache --update g++ zsh git ca-certificates curl openssh-client musl-dev clang lld llvm file
|
||||
# Add my user
|
||||
RUN adduser Entity -h /home/Entity -S --shell /bin/zsh
|
||||
RUN addgroup Entity
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
||||
SSH-Transfer/target
|
||||
SSH-Transfer/target
|
||||
SSH-Transfer/SSH-Transfer
|
5
SSH-Transfer/.cargo/config.toml
Normal file
5
SSH-Transfer/.cargo/config.toml
Normal file
@ -0,0 +1,5 @@
|
||||
[build]
|
||||
target = "x86_64-unknown-linux-musl"
|
||||
|
||||
[target.'cfg(target_os = "linux")']
|
||||
rustflags = ["-C", "linker=ld.lld", "-C", "relocation-model=static", "-C", "strip=symbols"]
|
@ -15,10 +15,12 @@ struct CLI
|
||||
|
||||
fn main()
|
||||
{
|
||||
#[cfg(debug_assertions)]
|
||||
let Args = CLI::parse();
|
||||
|
||||
let CurrentUUID = get_current_uid();
|
||||
let CurrentUser = get_user_by_uid(CurrentUUID).unwrap();
|
||||
#[cfg(debug_assertions)]
|
||||
let CurrentUserName = CurrentUser.name().to_str().unwrap();
|
||||
let CurrentUserHomeDir = CurrentUser.home_dir().to_str().unwrap();
|
||||
|
||||
@ -26,7 +28,7 @@ fn main()
|
||||
println!("Program running from {} with UUID {}", CurrentUserName, CurrentUUID );
|
||||
#[cfg(debug_assertions)]
|
||||
println!("{}'s home directory: {}" , CurrentUserName, CurrentUserHomeDir);
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
println!("Copying from {} to {}/.ssh", Args.Source, CurrentUserHomeDir);
|
||||
|
||||
VerifySource();
|
||||
|
Loading…
Reference in New Issue
Block a user