diff --git a/README.md b/README.md index 125a8e0..e376f0b 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # imgupload -![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/BBaoVanC/imgupload/master?color=purple) ![GitHub repo size](https://img.shields.io/github/repo-size/bbaovanc/imgupload?color=purple) ![GitHub All Releases](https://img.shields.io/github/downloads/bbaovanc/imgupload/total?color=purple) ![GitHub issues](https://img.shields.io/github/issues/bbaovanc/imgupload?color=purple) ![GitHub closed issues](https://img.shields.io/github/issues-closed/bbaovanc/imgupload?color=purple) ![GitHub](https://img.shields.io/github/license/bbaovanc/imgupload?color=purple) +![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/BBaoVanC/imgupload/master?color=purple) ![GitHub repo size](https://img.shields.io/github/repo-size/bbaovanc/imgupload?color=purple) ![GitHub All Releases](https://img.shields.io/github/downloads/bbaovanc/imgupload/total?color=purple) ![GitHub issues](https://img.shields.io/github/issues/bbaovanc/imgupload?color=purple) ![GitHub closed issues](https://img.shields.io/github/issues-closed/bbaovanc/imgupload?color=purple) ![GitHub](https://img.shields.io/github/license/bbaovanc/imgupload?color=purple) -### What is imgupload? +### What is imgupload? imgupload is a Flask + uWSGI application to serve as an all-purpose image/file uploader over POST requests. ### Usage -Make sure you install the dependencies first. To do this, run `sudo python3 -m pip install -r requirements.txt`. -To deploy imgupload, run `flask run`. \ No newline at end of file +Make sure you install the dependencies first. To do this, run `sudo python3 -m pip install -r requirements.txt`. +To deploy imgupload, run `flask run`. diff --git a/keygen.py b/keygen.py index 5279ac2..283be75 100644 --- a/keygen.py +++ b/keygen.py @@ -8,7 +8,7 @@ import sys import os -# Check if the script was run as root +# Check if the script was run as root if os.geteuid() != 0: exit("Root privileges are necessary to run this script.\nPlease try again as root or using `sudo`.")