Download packages through https, upload through ssh
By downloading through https there is no access needed through SSH to download the packages and so bootstrapping a new installation becomes easier.
This commit is contained in:
parent
1702b6e949
commit
1d64aaa762
1 changed files with 3 additions and 8 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 20171205233613
|
;; Version: 20171207004637
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
;; it under the terms of the GNU General Public License as published by
|
;; it under the terms of the GNU General Public License as published by
|
||||||
|
@ -39,11 +39,6 @@
|
||||||
(require 'package)
|
(require 'package)
|
||||||
(require 'package-x))
|
(require 'package-x))
|
||||||
|
|
||||||
;;;###autoload
|
|
||||||
(defconst oni-package-archive-upload-base
|
|
||||||
"/ssh:slash@ryuslash.org:usr/share/emacs/elpa/"
|
|
||||||
"Where my packages are stored on my server.")
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
|
||||||
|
|
||||||
|
@ -51,9 +46,9 @@
|
||||||
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/"))
|
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/"))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(add-to-list 'package-archives `("oni" . ,oni-package-archive-upload-base))
|
(add-to-list 'package-archives `("oni" . "https://ryuslash.org/elpa/"))
|
||||||
|
|
||||||
(setq package-archive-upload-base oni-package-archive-upload-base)
|
(setq package-archive-upload-base "/ssh:slash@ryuslash.org:usr/share/emacs/elpa/")
|
||||||
|
|
||||||
;;;###autoload (with-eval-after-load 'package (require 'oni-package))
|
;;;###autoload (with-eval-after-load 'package (require 'oni-package))
|
||||||
;;;###autoload (with-eval-after-load 'package-x (require 'oni-package))
|
;;;###autoload (with-eval-after-load 'package-x (require 'oni-package))
|
||||||
|
|
Loading…
Reference in a new issue