diff --git a/add-sftp.sh b/add-sftp.sh index ae466ca..b514466 100644 --- a/add-sftp.sh +++ b/add-sftp.sh @@ -59,4 +59,5 @@ chmod g+s $ROOT_DIRECTORY log "Script completed for user $USERNAME" # Output the created username and password -echo "{ \"USERNAME\": \"$USERNAME\", \"PASSWORD\": \"$PASSWORD\" }" +echo "export CREATED_USERNAME=$USERNAME" >> /etc/profile +echo "export CREATED_PASSWORD=$PASSWORD" >> /etc/profile