Skip to content
Snippets Groups Projects
entrypoint.sh 260 B
Newer Older
  • Learn to ignore specific revisions
  • Vincent Sellier's avatar
    Vincent Sellier committed
    #!/bin/bash
    
    if [ ! -e /etc/cozy/cozy-admin-passphrase ]; then
    
    Alpha FACTORY's avatar
    Alpha FACTORY committed
    	./cozy -c /dev/null config gen-keys /etc/cozy/credentials-key
    	./cozy -c /dev/null config password /etc/cozy
    
    Vincent Sellier's avatar
    Vincent Sellier committed
    else
    	echo "Admin passphrase already exists, skipping initialization"
    fi
    
    ./cozy serve