Skip to content

A web service to automate ownership change of Google Drive files

License

Notifications You must be signed in to change notification settings

fortcollinscreatorhub/fcch-gdrive-chown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation instructions

mkdir -p /var/www/fcch-gdrive-chown/
cd  /var/www/fcch-gdrive-chown/
virtualenv -p python3 venv
. ./venv/bin/activate
pip install --upgrade google-api-python-client
pip install --upgrade google-auth google-auth-oauthlib google-auth-httplib2
pip install --upgrade flask
pip install --upgrade requests

Edit /etc/apache2/sites-enabled/avon.wwwdotorg.org-ssl.conf to add:

<VirtualHost *:443>
    ...
    WSGIDaemonProcess fcch python-home=/var/www/fcch-gdrive-chown/venv
    WSGIProcessGroup fcch
    WSGIScriptAlias /fcch-gdrive-chown /var/www/fcch-gdrive-chown/app.wsgi
</VirtualHost>

Change the ownership of /var/www/fcch-gdrive-chown/ so the web server process uid can read it.

Change the group ownership of /var/www/fcch-gdrive-chown/var so that the web server process can write it. The best approach is to create a new group that the web server is a member of, plus anyone who needs debug access to the database file.

Now, access: https://avon.wwwdotorg.org/fcch-gdrive-chown/.

About

A web service to automate ownership change of Google Drive files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published