Create a directory to store the debian folder
$ mkdir -p test_folder/DEBIAN
Create a control file inside debian folder
| #!/bin/bash | |
| sudo pkill -9 OneDrive | |
| sudo rm -rf /Applications/OneDrive.app/ | |
| sudo rm /Library/LaunchAgents/com.microsoft.OneDriveStandaloneUpdater.plist | |
| sudo rm /Library/LaunchDaemons/com.microsoft.OneDriveStandaloneUpdaterDaemon.plist | |
| sudo rm /Library/LaunchDaemons/com.microsoft.OneDriveUpdaterDaemon.plist | |
| sudo rm -rf /Library/Logs/Microsoft/OneDrive | |
| sudo rm /private/var/db/receipts/com.microsoft.OneDrive-mac.bom |
# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button
# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1T 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 1T 0 part| """Entrypoint to invoke the FastAPI application service with.""" | |
| from fastapi import FastAPI, status | |
| from pydantic import BaseModel | |
| import uvicorn | |
| app = FastAPI() | |
| class HealthCheck(BaseModel): |
| import requests | |
| import argparse | |
| # Change this to your domain name or IP address of server running wg-easy | |
| base_url = 'http://localhost:51821' | |
| # Make sure to update the password to the password you set for your webgui | |
| def get_session_id(base_url=base_url): | |
| path = base_url + '/api/session' | |
| headers = {'Content-Type': 'application/json'} |